Cleanup code using move semantics

This commit is contained in:
seelabs
2020-04-10 14:07:31 -04:00
committed by manojsdoshi
parent 421417ab07
commit 6d28f2a8d9
25 changed files with 132 additions and 116 deletions

View File

@@ -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();