forked from mirror/OpenTTD
Codechange: Store base set related texts in std::strings.
This commit is contained in:
@@ -65,7 +65,7 @@ StringID DropDownListParamStringItem::String() const
|
||||
|
||||
StringID DropDownListCharStringItem::String() const
|
||||
{
|
||||
SetDParamStr(0, this->raw_string);
|
||||
SetDParamStr(0, this->raw_string.c_str());
|
||||
return this->string;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user