mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
Codechange: Fix unnecessary string reallocation in IConsoleLine constructor
This commit is contained in:
parent
0a7ffae0d9
commit
20f7ff8ac0
@ -53,8 +53,8 @@ struct IConsoleLine {
|
||||
* @param buffer the data to print.
|
||||
* @param colour the colour of the line.
|
||||
*/
|
||||
IConsoleLine(const std::string &buffer, TextColour colour) :
|
||||
buffer(buffer),
|
||||
IConsoleLine(std::string buffer, TextColour colour) :
|
||||
buffer(std::move(buffer)),
|
||||
colour(colour),
|
||||
time(0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user