+ std::string tmp_text = escape_text ? GetEscapedText(text) : text;
You can do:
std::string tmp_text = escape_text ? GetEscapedText(text) : std::move(text);
But using the gcc implementation of std::string coping and moving are equivalent.
« Back to merge proposal
+ std::string tmp_text = escape_text ? GetEscapedText( text) : text;
You can do:
std::string tmp_text = escape_text ? GetEscapedText( text) : std::move(text);
But using the gcc implementation of std::string coping and moving are equivalent.