From daa205990fa043092394931b85be6efdc37408df Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2015 19:08:28 -0400 Subject: Use emplace() instead of insert() where applicable for maps. --- Source/Core/Common/SymbolDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/SymbolDB.cpp') diff --git a/Source/Core/Common/SymbolDB.cpp b/Source/Core/Common/SymbolDB.cpp index 9e7b553b13..f8b9cec346 100644 --- a/Source/Core/Common/SymbolDB.cpp +++ b/Source/Core/Common/SymbolDB.cpp @@ -53,5 +53,5 @@ Symbol* SymbolDB::GetSymbolFromName(const std::string& name) void SymbolDB::AddCompleteSymbol(const Symbol &symbol) { - functions.insert(std::pair(symbol.address, symbol)); + functions.emplace(symbol.address, symbol); } -- cgit v1.2.3 From 19459e827f6c15f9429598015019ecb66f2e6cad Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 8 Sep 2015 01:44:37 -0400 Subject: Partially revert "General: Toss out PRI macro usage" --- Source/Core/Common/SymbolDB.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/Common/SymbolDB.cpp') diff --git a/Source/Core/Common/SymbolDB.cpp b/Source/Core/Common/SymbolDB.cpp index f8b9cec346..260f5de3fe 100644 --- a/Source/Core/Common/SymbolDB.cpp +++ b/Source/Core/Common/SymbolDB.cpp @@ -20,8 +20,7 @@ void SymbolDB::List() func.second.size, func.second.hash, func.second.numCalls); } - INFO_LOG(OSHLE, "%lu functions known in this program above.", - (unsigned long)functions.size()); + INFO_LOG(OSHLE, "%zu functions known in this program above.", functions.size()); } void SymbolDB::Clear(const char *prefix) -- cgit v1.2.3