summaryrefslogtreecommitdiff
path: root/Source/Core/Common/SymbolDB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/SymbolDB.cpp')
-rw-r--r--Source/Core/Common/SymbolDB.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/Common/SymbolDB.cpp b/Source/Core/Common/SymbolDB.cpp
index d708df2185..c78a61ea8b 100644
--- a/Source/Core/Common/SymbolDB.cpp
+++ b/Source/Core/Common/SymbolDB.cpp
@@ -12,15 +12,15 @@
void SymbolDB::List()
{
- for (XFuncMap::iterator iter = functions.begin(); iter != functions.end(); ++iter)
+ for (const auto& func : functions)
{
DEBUG_LOG(OSHLE, "%s @ %08x: %i bytes (hash %08x) : %i calls",
- iter->second.name.c_str(), iter->second.address,
- iter->second.size, iter->second.hash,
- iter->second.numCalls);
+ func.second.name.c_str(), func.second.address,
+ func.second.size, func.second.hash,
+ func.second.numCalls);
}
INFO_LOG(OSHLE, "%lu functions known in this program above.",
- (unsigned long)functions.size());
+ (unsigned long)functions.size());
}
void SymbolDB::Clear(const char *prefix)
@@ -46,7 +46,7 @@ Symbol *SymbolDB::GetSymbolFromName(const char *name)
if (!strcmp(func.second.name.c_str(), name))
return &func.second;
}
- return 0;
+ return nullptr;
}
void SymbolDB::AddCompleteSymbol(const Symbol &symbol)