mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45: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