summaryrefslogtreecommitdiff
path: root/Source/Core/Common/SymbolDB.cpp
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2014-03-10 09:24:09 +1300
committerMatthew Parlane <parlane@gmail.com>2014-03-10 09:24:09 +1300
commit633dc75e857d649ffab7c4398e92536bccc9e1de (patch)
treef9aa8831a0731ea246bd921d979f4bffa7f07bd0 /Source/Core/Common/SymbolDB.cpp
parentf4012638672472afdbd9956229f273a18a77fd77 (diff)
parentd802d392811be44d34ae9cd23f616db93e54c50f (diff)
Merge pull request #142 from Tilka/clang-modernize
Run clang-modernize and manually fix the result
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)