Changeset - r26383:f90b5ba7430b
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 21 months ago 2022-09-09 16:40:50
j.g.rennison@gmail.com
Codechange: Fix unnecessary string reallocation in IConsoleLine constructor
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/console_gui.cpp
Show inline comments
 
@@ -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)
 
	{
0 comments (0 inline, 0 general)