diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-10-17 14:33:16 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-10-17 14:33:16 +0800 |
commit | 9f419314b646bf57dfc3fcbb509b3be2c974e3fd (patch) | |
tree | 6d40efce7beade635b6480a9b4e7db2f114c2145 /include/cru/ui/document/TextDocumentElement.h | |
parent | 5c5c496b605886b286d1b99e0f9e28ec02117ad5 (diff) | |
download | cru-9f419314b646bf57dfc3fcbb509b3be2c974e3fd.tar.gz cru-9f419314b646bf57dfc3fcbb509b3be2c974e3fd.tar.bz2 cru-9f419314b646bf57dfc3fcbb509b3be2c974e3fd.zip |
Remove String on Linux.
Diffstat (limited to 'include/cru/ui/document/TextDocumentElement.h')
-rw-r--r-- | include/cru/ui/document/TextDocumentElement.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/ui/document/TextDocumentElement.h b/include/cru/ui/document/TextDocumentElement.h index 73a041ef..85ea6f2e 100644 --- a/include/cru/ui/document/TextDocumentElement.h +++ b/include/cru/ui/document/TextDocumentElement.h @@ -24,12 +24,12 @@ struct IDocumentLink : virtual Interface { class CRU_UI_API TextDocumentElement : public DocumentElement { public: - TextDocumentElement(String text, TextStyle style, IDocumentLink* link); + TextDocumentElement(std::string text, TextStyle style, IDocumentLink* link); ~TextDocumentElement() override; - String GetText() const { return text_; } - void SetText(String text); + std::string GetText() const { return text_; } + void SetText(std::string text); TextStyle GetStyle() const { return style_; } void SetStyle(TextStyle style); @@ -38,7 +38,7 @@ class CRU_UI_API TextDocumentElement : public DocumentElement { void SetLink(IDocumentLink link); private: - String text_; + std::string text_; TextStyle style_; IDocumentLink* link_; }; |