mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Add const ref, remove excess .c_str(), push_* -> emplace_* and rewrite constructors
This commit is contained in:
committed by
Hielke Morsink
parent
cdc1a912d3
commit
0045aed7f9
@@ -224,7 +224,7 @@ void InGameConsole::WriteLine(const std::string& input, FormatToken colourFormat
|
||||
{
|
||||
splitPos = input.find('\n', stringOffset);
|
||||
line = input.substr(stringOffset, splitPos - stringOffset);
|
||||
_consoleLines.push_back(colourCodepoint + line);
|
||||
_consoleLines.emplace_back(colourCodepoint + line);
|
||||
stringOffset = splitPos + 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user