Add const qualifiers to two foreach loop variables for consistency.

Also fix a vector include I happened to notice. Should be "<vector>" not "vector"
This commit is contained in:
Lioncash 2014-02-04 19:44:02 -05:00
parent a73a600343
commit 8039963858
1 changed files with 4 additions and 4 deletions

View File

@ -7,11 +7,11 @@
#include "Thread.h" #include "Thread.h"
#include "HW/Memmap.h" #include "HW/Memmap.h"
#include "ConfigManager.h" #include "ConfigManager.h"
#include "vector"
#include "PowerPC/PowerPC.h" #include "PowerPC/PowerPC.h"
#include "CommonPaths.h" #include "CommonPaths.h"
#include <vector>
namespace Gecko namespace Gecko
{ {
// return true if a code exists // return true if a code exists
@ -97,11 +97,11 @@ bool InstallCodeHandler()
int i = 0; int i = 0;
for (GeckoCode& active_code : active_codes) for (const GeckoCode& active_code : active_codes)
{ {
if (active_code.enabled) 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 // Make sure we have enough memory to hold the code list
if ((codelist_location + 24 + i) < 0x80003000) if ((codelist_location + 24 + i) < 0x80003000)