summaryrefslogtreecommitdiff
path: root/src/settings_internal.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-30 11:30:03 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-13 10:26:58 +0200
commitca9c50607eeca1657f7da4a06fe4486574e97139 (patch)
tree830d53ced75db0d58e88ce4bcf300201e7fb74b5 /src/settings_internal.h
parentfed3e3305f6437a0d3ccf231585595838369b907 (diff)
downloadopenttd-ca9c50607eeca1657f7da4a06fe4486574e97139.tar.xz
Codechange: use StrStartsWith/StrEndsWith when finding settings
Diffstat (limited to 'src/settings_internal.h')
-rw-r--r--src/settings_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings_internal.h b/src/settings_internal.h
index a625f576c..e1b3b75a7 100644
--- a/src/settings_internal.h
+++ b/src/settings_internal.h
@@ -301,8 +301,8 @@ struct NullSettingDesc : SettingDesc {
typedef std::initializer_list<std::unique_ptr<const SettingDesc>> SettingTable;
-const SettingDesc *GetSettingFromName(const char *name);
-void GetSettingSaveLoadByPrefix(const char *prefix, std::vector<SaveLoad> &saveloads);
+const SettingDesc *GetSettingFromName(const std::string_view name);
+void GetSettingSaveLoadByPrefix(const std::string_view prefix, std::vector<SaveLoad> &saveloads);
bool SetSettingValue(const IntSettingDesc *sd, int32 value, bool force_newgame = false);
bool SetSettingValue(const StringSettingDesc *sd, const std::string value, bool force_newgame = false);