Codechange: use BoolSettingDesc to parse settings in conversion code

This commit is contained in:
Patric Stout
2023-07-19 11:15:29 +02:00
committed by Patric Stout
parent 06b2d9b1cc
commit ece50d5a1d
2 changed files with 21 additions and 4 deletions

View File

@@ -196,6 +196,8 @@ struct BoolSettingDesc : IntSettingDesc {
IntSettingDesc(save, flags, startup, def, 0, 1, 0, str, str_help, str_val, cat,
pre_check, post_callback) {}
static std::optional<bool> ParseSingleValue(const char *str);
bool IsBoolSetting() const override { return true; }
size_t ParseValue(const char *str) const override;
std::string FormatValue(const void *object) const override;