mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use class template argument deduction for locks
This commit is contained in:
@@ -199,8 +199,7 @@ std::string
|
||||
AccountIDCache::toBase58(
|
||||
AccountID const& id) const
|
||||
{
|
||||
std::lock_guard<
|
||||
std::mutex> lock(mutex_);
|
||||
std::lock_guard lock(mutex_);
|
||||
auto iter = m1_.find(id);
|
||||
if (iter != m1_.end())
|
||||
return iter->second;
|
||||
|
||||
Reference in New Issue
Block a user