1
0
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:
germanaizek
2022-04-25 16:32:04 +03:00
committed by Hielke Morsink
parent cdc1a912d3
commit 0045aed7f9
14 changed files with 18 additions and 19 deletions

View File

@@ -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;
}