Better readability and optimization insertion into container by replacing 'insert' -> 'emplace', 'push_back' -> 'emplace_back'

This commit is contained in:
lainon committed 2022-09-30 12:35:28 +03:00
1 parent c953bf7fc7
commit 3cdf72b68b
20 files changed
+49 -49

No files matched your search

+1 -1
View File
@@ -339,7 +339,7 @@ void AddAddressBreakpoint(u32 addr, bool temp) {
} else {
// Remove the temporary marking.
breakPCsTemp.erase(addr);
breakPCs.insert(std::make_pair(addr, BreakpointInfo{}));
breakPCs.emplace(addr, BreakpointInfo{});
}
breakPCsCount = breakPCs.size();