refactor: [gui] Use SettingTo<int64_t> over deprecated SettingToInt

This refactor does not change any behavior.

Also, remove the now-unused deprecated aliases.
This commit is contained in:
MarcoFalke
2026-02-16 16:21:11 +01:00
parent fac3ecaf69
commit fa5672dcaf
2 changed files with 4 additions and 7 deletions

View File

@@ -96,9 +96,6 @@ Int SettingTo(const common::SettingsValue&, Int);
template <std::integral Int>
std::optional<Int> SettingTo(const common::SettingsValue&);
inline int64_t SettingToInt(const common::SettingsValue& value, int64_t nDefault) { return SettingTo<int64_t>(value, nDefault); }
inline std::optional<int64_t> SettingToInt(const common::SettingsValue& value) { return SettingTo<int64_t>(value); }
bool SettingToBool(const common::SettingsValue&, bool);
std::optional<bool> SettingToBool(const common::SettingsValue&);