Codechange: make Write_ValidateSetting a function of IntSettingDesc

This commit is contained in:
rubidium42
2021-05-22 20:44:09 +02:00
committed by rubidium42
parent 024e584904
commit be28c95b30
2 changed files with 94 additions and 96 deletions

View File

@@ -110,6 +110,8 @@ struct SettingDesc {
bool IsEditable(bool do_command = false) const;
SettingType GetType() const;
bool IsIntSetting() const;
const struct IntSettingDesc *AsIntSetting() const;
/**
* Format the value of the setting associated with this object.
@@ -129,6 +131,9 @@ struct IntSettingDesc : SettingDesc {
proc, many_cnvt, cat, startup) {}
virtual ~IntSettingDesc() {}
void ChangeValue(const void *object, int32 newvalue) const;
void Write_ValidateSetting(const void *object, int32 value) const;
void FormatValue(char *buf, const char *last, const void *object) const override;
};