mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Eliminate a copy of the string returned by FastWriter
This commit is contained in:
committed by
Vinnie Falco
parent
bf0fa8c562
commit
8c1c2f5d05
@@ -200,7 +200,7 @@ FastWriter::write ( const Value& root )
|
||||
document_ = "";
|
||||
writeValue ( root );
|
||||
document_ += "\n";
|
||||
return document_;
|
||||
return std::move (document_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user