diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-05-07 19:28:52 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 16:56:07 +0200 |
commit | cfb63c68dbdc2c8add45cddb2cedf371059af6c4 (patch) | |
tree | 94cc37ced96d67d10a01c32d6d2ed7f7f50ba2a1 /src/common | |
parent | settings,uisettings: Add IDs to settings (diff) | |
download | yuzu-cfb63c68dbdc2c8add45cddb2cedf371059af6c4.tar yuzu-cfb63c68dbdc2c8add45cddb2cedf371059af6c4.tar.gz yuzu-cfb63c68dbdc2c8add45cddb2cedf371059af6c4.tar.bz2 yuzu-cfb63c68dbdc2c8add45cddb2cedf371059af6c4.tar.lz yuzu-cfb63c68dbdc2c8add45cddb2cedf371059af6c4.tar.xz yuzu-cfb63c68dbdc2c8add45cddb2cedf371059af6c4.tar.zst yuzu-cfb63c68dbdc2c8add45cddb2cedf371059af6c4.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/settings.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index 69777421e..a90fc87a7 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -191,7 +191,7 @@ public: virtual bool IsEnum() const = 0; virtual bool RuntimeModfiable() const = 0; virtual void SetGlobal(bool global) {} - virtual u32 Id() const = 0; + virtual constexpr u32 Id() const = 0; virtual bool UsingGlobal() const { return false; } @@ -423,7 +423,7 @@ public: return std::type_index(typeid(Type)); } - virtual u32 Id() const override { + virtual constexpr u32 Id() const override { return id; } |