diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-02-15 11:50:37 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-02-15 11:50:37 -0500 |
| commit | 0da963c32cbe2fb64f2b6e260d64a80a38845ea3 (patch) | |
| tree | b0704cc9767a9bb541f708eda9526798b81be83b /Source | |
| parent | 6f272b3a4c31a43f8d4fd8b7fd914112d4fd820b (diff) | |
NetKDRequest: Make lookup maps const
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp b/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp index 4bdd738c51..0feb9e1393 100644 --- a/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp +++ b/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp @@ -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}, }; @@ -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}, }; |
