mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Move RawText::GetEncodedText() out of header.
This allows it to use StringID without polluting includes.pull/13851/head
parent
3b178bf58d
commit
4ffbf97770
|
@ -20,6 +20,10 @@
|
||||||
|
|
||||||
#include "../../safeguards.h"
|
#include "../../safeguards.h"
|
||||||
|
|
||||||
|
EncodedString RawText::GetEncodedText()
|
||||||
|
{
|
||||||
|
return ::GetEncodedString(STR_JUST_RAW_STRING, this->text);
|
||||||
|
}
|
||||||
|
|
||||||
ScriptText::ScriptText(HSQUIRRELVM vm)
|
ScriptText::ScriptText(HSQUIRRELVM vm)
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,7 +44,7 @@ class RawText : public Text {
|
||||||
public:
|
public:
|
||||||
RawText(const std::string &text) : text(text) {}
|
RawText(const std::string &text) : text(text) {}
|
||||||
|
|
||||||
EncodedString GetEncodedText() override { return ::GetEncodedString(STR_JUST_RAW_STRING, this->text); }
|
EncodedString GetEncodedText() override;
|
||||||
private:
|
private:
|
||||||
const std::string text;
|
const std::string text;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue