From 0da963c32cbe2fb64f2b6e260d64a80a38845ea3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 15 Feb 2017 11:50:37 -0500 Subject: [PATCH] NetKDRequest: Make lookup maps const --- Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp | 4 ++-- 1 file 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 regions = { + static const std::map 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 models = { + static const std::map models = { {"RVL", MODEL_RVL}, {"RVT", MODEL_RVT}, {"RVV", MODEL_RVV}, {"RVD", MODEL_RVD}, };