diff options
| author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-18 15:36:20 -0400 |
|---|---|---|
| committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 10:56:55 -0400 |
| commit | 5e52526942a52935e373a4840dd27f5d0dabe03f (patch) | |
| tree | 13fcd6568c57dbbc8d7417101fa54f332da7671f /src/common/settings.cpp | |
| parent | 830a2815b513d1f76d16d20561e20057f043e41a (diff) | |
settings: Cleanup
Addresses review feedback
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 78fa991134..59d24a0534 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -25,6 +25,7 @@ namespace Settings { +// Clang 14 and earlier have errors when explicitly instantiating these classes #ifndef CANNOT_EXPLICITLY_INSTANTIATE #define SETTING(TYPE, RANGED) template class Setting<TYPE, RANGED> #define SWITCHABLE(TYPE, RANGED) template class SwitchableSetting<TYPE, RANGED> @@ -113,11 +114,11 @@ void LogSettings() { for (const auto& setting : settings) { if (setting->Id() == values.yuzu_token.Id()) { - // Hide the token secret, which could be used to share patreon builds + // Hide the token secret, for security reasons. continue; } - std::string name = fmt::format( + const auto name = fmt::format( "{:c}{:c} {}.{}", setting->ToString() == setting->DefaultToString() ? '-' : 'M', setting->UsingGlobal() ? '-' : 'C', TranslateCategory(category), setting->GetLabel()); |
