summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/config.h
diff options
context:
space:
mode:
authorGravatar merry2022-07-15 18:37:48 +0100
committerGravatar merry2022-07-15 18:45:55 +0100
commit99fbdaf75b18dd4cdaad1e93fa2a4ad82b0591aa (patch)
tree34f063354ad890efa79b7f4c57a9c36d3ac4cb69 /src/yuzu_cmd/config.h
parentMerge pull request #8587 from merryhime/padding-unused (diff)
downloadyuzu-99fbdaf75b18dd4cdaad1e93fa2a4ad82b0591aa.tar.gz
yuzu-99fbdaf75b18dd4cdaad1e93fa2a4ad82b0591aa.tar.xz
yuzu-99fbdaf75b18dd4cdaad1e93fa2a4ad82b0591aa.zip
common/setting: Make ranged a property of the type
- Avoids new GCC 12 warnings when Type is of form std::optional<T> - Makes more sense this way, because ranged is not a property which would change over time
Diffstat (limited to 'src/yuzu_cmd/config.h')
-rw-r--r--src/yuzu_cmd/config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu_cmd/config.h b/src/yuzu_cmd/config.h
index ccf77d668..32c03075f 100644
--- a/src/yuzu_cmd/config.h
+++ b/src/yuzu_cmd/config.h
@@ -33,6 +33,6 @@ private:
33 * @param group The name of the INI group 33 * @param group The name of the INI group
34 * @param setting The yuzu setting to modify 34 * @param setting The yuzu setting to modify
35 */ 35 */
36 template <typename Type> 36 template <typename Type, bool ranged>
37 void ReadSetting(const std::string& group, Settings::Setting<Type>& setting); 37 void ReadSetting(const std::string& group, Settings::Setting<Type, ranged>& setting);
38}; 38};