summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-04-27 20:58:17 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-06 21:45:36 +0200
commit6bca9e090dc6637fd7b6ed6a5a37d65f151849e9 (patch)
tree062edb9db599f8e3244f6ed4acf3ad85f39912ae /src/widgets
parentf313a539a54efe09850bcab0680d281e3cc54444 (diff)
downloadopenttd-6bca9e090dc6637fd7b6ed6a5a37d65f151849e9.tar.xz
Codechange: add SetDParamStr that accepts std::string&
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/dropdown.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp
index 8f4a8634e..4b89b4809 100644
--- a/src/widgets/dropdown.cpp
+++ b/src/widgets/dropdown.cpp
@@ -65,7 +65,7 @@ StringID DropDownListParamStringItem::String() const
StringID DropDownListCharStringItem::String() const
{
- SetDParamStr(0, this->raw_string.c_str());
+ SetDParamStr(0, this->raw_string);
return this->string;
}