From 99fbdaf75b18dd4cdaad1e93fa2a4ad82b0591aa Mon Sep 17 00:00:00 2001 From: merry Date: Fri, 15 Jul 2022 18:37:48 +0100 Subject: common/setting: Make ranged a property of the type - Avoids new GCC 12 warnings when Type is of form std::optional - Makes more sense this way, because ranged is not a property which would change over time --- src/yuzu/configuration/config.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/yuzu/configuration/config.h') diff --git a/src/yuzu/configuration/config.h b/src/yuzu/configuration/config.h index 9ca878d23..d511b3dbd 100644 --- a/src/yuzu/configuration/config.h +++ b/src/yuzu/configuration/config.h @@ -159,8 +159,8 @@ private: * * @param The setting */ - template - void ReadGlobalSetting(Settings::SwitchableSetting& setting); + template + void ReadGlobalSetting(Settings::SwitchableSetting& setting); /** * Sets a value to the qt_config using the setting's label and default value. If the config is a @@ -168,8 +168,8 @@ private: * * @param The setting */ - template - void WriteGlobalSetting(const Settings::SwitchableSetting& setting); + template + void WriteGlobalSetting(const Settings::SwitchableSetting& setting); /** * Reads a value from the qt_config using the setting's label and default value and applies the @@ -177,15 +177,15 @@ private: * * @param The setting */ - template - void ReadBasicSetting(Settings::Setting& setting); + template + void ReadBasicSetting(Settings::Setting& setting); /** Sets a value from the setting in the qt_config using the setting's label and default value. * * @param The setting */ - template - void WriteBasicSetting(const Settings::Setting& setting); + template + void WriteBasicSetting(const Settings::Setting& setting); ConfigType type; std::unique_ptr qt_config; -- cgit v1.2.3