From 9a5ea8ec600011481addfe6fd911aaeade67609b Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 9 Feb 2014 23:26:06 +0100 Subject: [PATCH] Let's see if the new-style for loops work everywhere by seeing if this breaks the build. --- Core/Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index d71d950adb..8e4c0bf681 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -182,8 +182,8 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) { auto pinnedPaths = iniFile.GetOrCreateSection("PinnedPaths")->ToMap(); vPinnedPaths.clear(); - for (auto it = pinnedPaths.begin(), end = pinnedPaths.end(); it != end; ++it) { - vPinnedPaths.push_back(it->second); + for (auto it : pinnedPaths) { + vPinnedPaths.push_back(it.second); } IniFile::Section *cpu = iniFile.GetOrCreateSection("CPU");