diff options
| -rw-r--r-- | src/common/settings_enums.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/settings_enums.h b/src/common/settings_enums.h index d820bc48e..2710f136d 100644 --- a/src/common/settings_enums.h +++ b/src/common/settings_enums.h | |||
| @@ -210,7 +210,7 @@ enum class AspectRatio : u32 { | |||
| 210 | #define X(ENUM, NAME) \ | 210 | #define X(ENUM, NAME) \ |
| 211 | { (#NAME), static_cast<u32>(ENUM::NAME) } | 211 | { (#NAME), static_cast<u32>(ENUM::NAME) } |
| 212 | 212 | ||
| 213 | static std::map<std::type_index, std::map<std::string, u32>> canonicalizations = { | 213 | static const std::map<std::type_index, std::map<std::string, u32>> canonicalizations = { |
| 214 | {typeid(AudioEngine), | 214 | {typeid(AudioEngine), |
| 215 | { | 215 | { |
| 216 | {"auto", static_cast<u32>(AudioEngine::Auto)}, | 216 | {"auto", static_cast<u32>(AudioEngine::Auto)}, |
| @@ -377,7 +377,7 @@ static std::map<std::type_index, std::map<std::string, u32>> canonicalizations = | |||
| 377 | 377 | ||
| 378 | #undef X | 378 | #undef X |
| 379 | 379 | ||
| 380 | static std::string invalid_string{"(invalid setting)"}; | 380 | static const std::string invalid_string{"(invalid setting)"}; |
| 381 | 381 | ||
| 382 | template <typename Type> | 382 | template <typename Type> |
| 383 | const std::string& CanonicalizeEnum(Type id) { | 383 | const std::string& CanonicalizeEnum(Type id) { |