summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-02-06 03:23:13 -0500
committerLioncash <mathew1800@gmail.com>2014-02-06 03:23:13 -0500
commit9ac6e35b5facae7e361a67717d6428ea40235c87 (patch)
tree695c923c9613c111f0d9286ca22ae19702962817 /Source
parent78356ce18403505fbf1904ef9479ec744452f8a4 (diff)
Add static and const qualifiers to the maps.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp
index 9b950d727f..0b111540d4 100644
--- a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp
+++ b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp
@@ -207,7 +207,7 @@ bool CWII_IPC_HLE_Device_net_kd_request::IOCtl(u32 _CommandAddress)
u8 CWII_IPC_HLE_Device_net_kd_request::GetAreaCode(const std::string& area)
{
- std::map<std::string, u8> regions = {
+ static std::map<const std::string, u8> regions = {
{ "JPN", 0 }, { "USA", 1 }, { "EUR", 2 },
{ "AUS", 2 }, { "BRA", 1 }, { "TWN", 3 },
{ "ROC", 3 }, { "KOR", 4 }, { "HKG", 5 },
@@ -224,7 +224,7 @@ u8 CWII_IPC_HLE_Device_net_kd_request::GetAreaCode(const std::string& area)
u8 CWII_IPC_HLE_Device_net_kd_request::GetHardwareModel(const std::string& model)
{
- std::map<std::string, u8> models = {
+ static std::map<const std::string, u8> models = {
{ "RVL", MODEL_RVL },
{ "RVT", MODEL_RVT },
{ "RVV", MODEL_RVV },