mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Cleanup code using move semantics
This commit is contained in:
@@ -322,7 +322,8 @@ PeerImp::json()
|
||||
|
||||
std::string name{getName()};
|
||||
if (!name.empty())
|
||||
ret[jss::name] = std::move(name);
|
||||
// Could move here if Json::Value supported moving from a string
|
||||
ret[jss::name] = name;
|
||||
}
|
||||
|
||||
ret[jss::load] = usage_.balance();
|
||||
|
||||
Reference in New Issue
Block a user