Codechange: Fix unnecessary string reallocation in IConsoleLine constructor
This commit is contained in:
@@ -53,8 +53,8 @@ struct IConsoleLine {
|
|||||||
* @param buffer the data to print.
|
* @param buffer the data to print.
|
||||||
* @param colour the colour of the line.
|
* @param colour the colour of the line.
|
||||||
*/
|
*/
|
||||||
IConsoleLine(const std::string &buffer, TextColour colour) :
|
IConsoleLine(std::string buffer, TextColour colour) :
|
||||||
buffer(buffer),
|
buffer(std::move(buffer)),
|
||||||
colour(colour),
|
colour(colour),
|
||||||
time(0)
|
time(0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user