mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use emplace where we can. (On inserts into unordered maps.)
This commit is contained in:
@@ -30,7 +30,7 @@ Suppression& SuppressionTable::findCreateEntry(const uint256& index, bool& creat
|
||||
}
|
||||
|
||||
mSuppressionTimes[now].push_back(index);
|
||||
return mSuppressionMap.insert(std::make_pair(index, Suppression())).first->second;
|
||||
return mSuppressionMap.emplace(index, Suppression()).first->second;
|
||||
}
|
||||
|
||||
bool SuppressionTable::addSuppression(const uint256& index)
|
||||
|
||||
Reference in New Issue
Block a user