1
0
Fork 0

Codechange: Move RawText::GetEncodedText() out of header.

This allows it to use StringID without polluting includes.
pull/13851/head
Peter Nelson 2025-03-20 23:56:13 +00:00 committed by Peter Nelson
parent 3b178bf58d
commit 4ffbf97770
2 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,10 @@
#include "../../safeguards.h"
EncodedString RawText::GetEncodedText()
{
return ::GetEncodedString(STR_JUST_RAW_STRING, this->text);
}
ScriptText::ScriptText(HSQUIRRELVM vm)
{

View File

@ -44,7 +44,7 @@ class RawText : public Text {
public:
RawText(const std::string &text) : text(text) {}
EncodedString GetEncodedText() override { return ::GetEncodedString(STR_JUST_RAW_STRING, this->text); }
EncodedString GetEncodedText() override;
private:
const std::string text;
};