From 8039963858edef4fa037945437a0f326d296e059 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 4 Feb 2014 19:44:02 -0500 Subject: [PATCH] Add const qualifiers to two foreach loop variables for consistency. Also fix a vector include I happened to notice. Should be "" not "vector" --- Source/Core/Core/GeckoCode.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/GeckoCode.cpp b/Source/Core/Core/GeckoCode.cpp index 92c6fd4bd9..cfb9e35a70 100644 --- a/Source/Core/Core/GeckoCode.cpp +++ b/Source/Core/Core/GeckoCode.cpp @@ -7,11 +7,11 @@ #include "Thread.h" #include "HW/Memmap.h" #include "ConfigManager.h" - -#include "vector" #include "PowerPC/PowerPC.h" #include "CommonPaths.h" +#include + namespace Gecko { // return true if a code exists @@ -97,11 +97,11 @@ bool InstallCodeHandler() int i = 0; - for (GeckoCode& active_code : active_codes) + for (const GeckoCode& active_code : active_codes) { if (active_code.enabled) { - for (GeckoCode::Code& code : active_code.codes) + for (const GeckoCode::Code& code : active_code.codes) { // Make sure we have enough memory to hold the code list if ((codelist_location + 24 + i) < 0x80003000)