Codechange: Always pass raw strings to TextFilter's AddLine(). (#13666)

Remove StringID overload, so callers have to preformat the string.
This commit is contained in:
Peter Nelson
2025-02-27 19:21:43 +00:00
committed by GitHub
parent b376e2655a
commit 8813a798e7
3 changed files with 4 additions and 32 deletions

View File

@@ -123,29 +123,3 @@ void StringFilter::AddLine(const char *str)
}
}
}
/**
* Pass another text line from the current item to the filter.
*
* You can call this multiple times for a single item, if the filter shall apply to multiple things.
* Before processing the next item you have to call ResetState().
*
* @param str Another line from the item.
*/
void StringFilter::AddLine(const std::string &str)
{
AddLine(str.c_str());
}
/**
* Pass another text line from the current item to the filter.
*
* You can call this multiple times for a single item, if the filter shall apply to multiple things.
* Before processing the next item you have to call ResetState().
*
* @param str Another line from the item.
*/
void StringFilter::AddLine(StringID str)
{
AddLine(GetString(str));
}