diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2014-02-12 16:00:34 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2014-02-13 09:05:50 +0100 |
| commit | 404624bf0b0125e5a408021c616ee9b9e2dde382 (patch) | |
| tree | d2c3cd6256b09ebdc04b8c913b21c2e56d30c2e1 /Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp | |
| parent | 2ff794d299b0426d1f2a523523260efad84a9837 (diff) | |
Turn loops into range-based form
and some things suggested by cppcheck and compiler warnings.
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp index 4f8f71225c..be6d8e4c04 100644 --- a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp @@ -354,10 +354,10 @@ void CCodeWindow::NotifyMapLoaded() //symbols->Show(false); // hide it for faster filling symbols->Freeze(); // HyperIris: wx style fast filling symbols->Clear(); - for (PPCSymbolDB::XFuncMap::iterator iter = g_symbolDB.GetIterator(); iter != g_symbolDB.End(); ++iter) + for (const auto& symbol : g_symbolDB.Symbols()) { - int idx = symbols->Append(StrToWxStr(iter->second.name)); - symbols->SetClientData(idx, (void*)&iter->second); + int idx = symbols->Append(StrToWxStr(symbol.second.name)); + symbols->SetClientData(idx, (void*)&symbol.second); } symbols->Thaw(); //symbols->Show(true); |
