Codechange: Pass more std::string to StringFilter::AddLine() (#10743)

This commit is contained in:
Tyler Trahan
2023-04-30 04:23:05 -04:00
committed by GitHub
parent ee9239d293
commit ba3de0383a
10 changed files with 28 additions and 24 deletions

View File

@@ -1249,11 +1249,8 @@ public:
/** Filter classes by class name. */
static bool CDECL TagNameFilter(RoadStopClassID const *sc, StringFilter &filter)
{
char buffer[DRAW_STRING_BUFFER];
GetString(buffer, RoadStopClass::Get(*sc)->name, lastof(buffer));
filter.ResetState();
filter.AddLine(buffer);
filter.AddLine(GetString(RoadStopClass::Get(*sc)->name));
return filter.GetState();
}