mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-21 11:22:45 +01:00
Codechange: Use emplace_back instead of push_back. (#13855)
This commit is contained in:
@@ -492,7 +492,7 @@ static void AddGRFTextToList(GRFTextList &list, uint8_t langid, std::string_view
|
||||
}
|
||||
|
||||
/* If a string wasn't replaced, then we must append the new string */
|
||||
list.push_back(GRFText{ langid, std::string(text_to_add) });
|
||||
list.emplace_back(langid, std::string{text_to_add});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user