diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2014-03-11 06:55:00 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2014-03-17 02:55:55 +0100 |
| commit | 2fcaca0603f750bb68349e8bbd506b53dd30915b (patch) | |
| tree | 8f90b4ee86386d9f54fb2d35f40c68f7e40cd335 /Source/Core/DolphinWX/CheatsWindow.cpp | |
| parent | 3fc9ca07892e123a8be5ee3d1f22693e896eb619 (diff) | |
More range-based loops and overrides
Diffstat (limited to 'Source/Core/DolphinWX/CheatsWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/CheatsWindow.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/Core/DolphinWX/CheatsWindow.cpp b/Source/Core/DolphinWX/CheatsWindow.cpp index 007dcb213a..c89e16ffab 100644 --- a/Source/Core/DolphinWX/CheatsWindow.cpp +++ b/Source/Core/DolphinWX/CheatsWindow.cpp @@ -547,12 +547,9 @@ void CheatSearchTab::UpdateCheatSearchResultsList() } else { - std::vector<CheatSearchResult>::const_iterator - i = search_results.begin(), - e = search_results.end(); - for (; i!=e; ++i) + for (const CheatSearchResult& result : search_results) { - u32 display_value = i->old_value; + u32 display_value = result.old_value; // #ifdef LIL_ENDIAN :p switch (search_type_size) @@ -574,7 +571,7 @@ void CheatSearchTab::UpdateCheatSearchResultsList() rowfmt[14] = (wxChar)(wxT('0') + search_type_size*2); lbox_search_results->Append( - wxString::Format(rowfmt, i->address, display_value, display_value, display_value)); + wxString::Format(rowfmt, result.address, display_value, display_value, display_value)); } } |
