Skip to content

Commit

Permalink
Add static and const qualifiers to the maps.
Browse files Browse the repository at this point in the history
  • Loading branch information
lioncash committed Feb 6, 2014
1 parent 78356ce commit 9ac6e35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -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 },
Expand Down

0 comments on commit 9ac6e35

Please sign in to comment.