Skip to content

Commit

Permalink
Merge pull request #4909 from lioncash/const
Browse files Browse the repository at this point in the history
NetKDRequest: Make lookup maps const
  • Loading branch information
JosJuice committed Feb 15, 2017
2 parents 6f272b3 + 0da963c commit 3aa8c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp
Expand Up @@ -152,7 +152,7 @@ IPCCommandResult NetKDRequest::IOCtl(const IOCtlRequest& request)

u8 NetKDRequest::GetAreaCode(const std::string& area) const
{
static std::map<const std::string, u8> regions = {
static const std::map<std::string, u8> regions = {
{"JPN", 0}, {"USA", 1}, {"EUR", 2}, {"AUS", 2}, {"BRA", 1}, {"TWN", 3}, {"ROC", 3},
{"KOR", 4}, {"HKG", 5}, {"ASI", 5}, {"LTN", 1}, {"SAF", 2}, {"CHN", 6},
};
Expand All @@ -166,7 +166,7 @@ u8 NetKDRequest::GetAreaCode(const std::string& area) const

u8 NetKDRequest::GetHardwareModel(const std::string& model) const
{
static std::map<const std::string, u8> models = {
static const std::map<std::string, u8> models = {
{"RVL", MODEL_RVL}, {"RVT", MODEL_RVT}, {"RVV", MODEL_RVV}, {"RVD", MODEL_RVD},
};

Expand Down

0 comments on commit 3aa8c68

Please sign in to comment.