diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-23 11:55:22 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-27 18:49:43 +0200 |
commit | 72ec81325b201931525e5c5f79abc6eb1de8d7a8 (patch) | |
tree | 668d049ad2aa4f8ff99122e90f9b860eaae12d93 /src/settings_internal.h | |
parent | 0d6597a9e6255193c306537aa0061b5a89b7c658 (diff) | |
download | openttd-72ec81325b201931525e5c5f79abc6eb1de8d7a8.tar.xz |
Cleanup: remove unneeded temporary variables and casts
Diffstat (limited to 'src/settings_internal.h')
-rw-r--r-- | src/settings_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings_internal.h b/src/settings_internal.h index be1dfbd93..5e653ec65 100644 --- a/src/settings_internal.h +++ b/src/settings_internal.h @@ -206,8 +206,8 @@ struct NullSettingDesc : SettingDesc { typedef std::initializer_list<std::unique_ptr<const SettingDesc>> SettingTable; const SettingDesc *GetSettingFromName(const char *name); -bool SetSettingValue(const SettingDesc *sd, int32 value, bool force_newgame = false); -bool SetSettingValue(const SettingDesc *sd, const char *value, bool force_newgame = false); +bool SetSettingValue(const IntSettingDesc *sd, int32 value, bool force_newgame = false); +bool SetSettingValue(const StringSettingDesc *sd, const char *value, bool force_newgame = false); uint GetSettingIndex(const SettingDesc *sd); #endif /* SETTINGS_INTERNAL_H */ |