summaryrefslogtreecommitdiff
path: root/src/widgets/dropdown_type.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-05-17 23:32:06 +0200
committerMichael Lutz <michi@icosahedron.de>2020-05-21 20:02:34 +0200
commita49fdb7ebbb8d8ce96bcd7bd779b18bcd86d0643 (patch)
treefc6776836040a068e6c1710288cee853ba28b565 /src/widgets/dropdown_type.h
parent715aa67a9c13444ee76e717bfa656472f5fb2ac3 (diff)
downloadopenttd-a49fdb7ebbb8d8ce96bcd7bd779b18bcd86d0643.tar.xz
Codechange: Store base set related texts in std::strings.
Diffstat (limited to 'src/widgets/dropdown_type.h')
-rw-r--r--src/widgets/dropdown_type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/dropdown_type.h b/src/widgets/dropdown_type.h
index c7d3251d6..5617027e3 100644
--- a/src/widgets/dropdown_type.h
+++ b/src/widgets/dropdown_type.h
@@ -68,9 +68,9 @@ public:
*/
class DropDownListCharStringItem : public DropDownListStringItem {
public:
- const char *raw_string;
+ std::string raw_string;
- DropDownListCharStringItem(const char *raw_string, int result, bool masked) : DropDownListStringItem(STR_JUST_RAW_STRING, result, masked), raw_string(raw_string) {}
+ DropDownListCharStringItem(const std::string &raw_string, int result, bool masked) : DropDownListStringItem(STR_JUST_RAW_STRING, result, masked), raw_string(raw_string) {}
StringID String() const override;
};