mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-29 06:26:44 +00:00
settings_enums: Add const type where needed
This commit is contained in:
parent
fe6e765b2d
commit
2fba913d0b
|
@ -210,7 +210,7 @@ enum class AspectRatio : u32 {
|
||||||
#define X(ENUM, NAME) \
|
#define X(ENUM, NAME) \
|
||||||
{ (#NAME), static_cast<u32>(ENUM::NAME) }
|
{ (#NAME), static_cast<u32>(ENUM::NAME) }
|
||||||
|
|
||||||
static std::map<std::type_index, std::map<std::string, u32>> canonicalizations = {
|
static const std::map<std::type_index, std::map<std::string, u32>> canonicalizations = {
|
||||||
{typeid(AudioEngine),
|
{typeid(AudioEngine),
|
||||||
{
|
{
|
||||||
{"auto", static_cast<u32>(AudioEngine::Auto)},
|
{"auto", static_cast<u32>(AudioEngine::Auto)},
|
||||||
|
@ -377,7 +377,7 @@ static std::map<std::type_index, std::map<std::string, u32>> canonicalizations =
|
||||||
|
|
||||||
#undef X
|
#undef X
|
||||||
|
|
||||||
static std::string invalid_string{"(invalid setting)"};
|
static const std::string invalid_string{"(invalid setting)"};
|
||||||
|
|
||||||
template <typename Type>
|
template <typename Type>
|
||||||
const std::string& CanonicalizeEnum(Type id) {
|
const std::string& CanonicalizeEnum(Type id) {
|
||||||
|
|
Loading…
Reference in a new issue