diff options
author | rubidium42 <rubidium@openttd.org> | 2021-04-27 20:58:17 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-06 21:45:36 +0200 |
commit | 6bca9e090dc6637fd7b6ed6a5a37d65f151849e9 (patch) | |
tree | 062edb9db599f8e3244f6ed4acf3ad85f39912ae /src/strings_func.h | |
parent | f313a539a54efe09850bcab0680d281e3cc54444 (diff) | |
download | openttd-6bca9e090dc6637fd7b6ed6a5a37d65f151849e9.tar.xz |
Codechange: add SetDParamStr that accepts std::string&
Diffstat (limited to 'src/strings_func.h')
-rw-r--r-- | src/strings_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/strings_func.h b/src/strings_func.h index e4b779105..be59b091a 100644 --- a/src/strings_func.h +++ b/src/strings_func.h @@ -205,6 +205,7 @@ void SetDParamMaxValue(uint n, uint64 max_value, uint min_count = 0, FontSize si void SetDParamMaxDigits(uint n, uint count, FontSize size = FS_NORMAL); void SetDParamStr(uint n, const char *str); +void SetDParamStr(uint n, const std::string &str); void CopyInDParam(int offs, const uint64 *src, int num); void CopyOutDParam(uint64 *dst, int offs, int num); |