mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
Cleanup code using move semantics
This commit is contained in:
@@ -48,7 +48,7 @@ Account::Account(
|
||||
Account
|
||||
Account::fromCache(std::string name, KeyType type)
|
||||
{
|
||||
auto const p = std::make_pair(name, type);
|
||||
auto p = std::make_pair(name, type); // non-const so it can be moved from
|
||||
auto const iter = cache_.find(p);
|
||||
if (iter != cache_.end())
|
||||
return iter->second;
|
||||
|
||||
Reference in New Issue
Block a user