diff options
Diffstat (limited to 'include/cru/ui/controls/TextBlock.h')
-rw-r--r-- | include/cru/ui/controls/TextBlock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/ui/controls/TextBlock.h b/include/cru/ui/controls/TextBlock.h index 66330b23..a3b6407f 100644 --- a/include/cru/ui/controls/TextBlock.h +++ b/include/cru/ui/controls/TextBlock.h @@ -14,7 +14,7 @@ class CRU_UI_API TextBlock : public NoChildControl, public virtual IFontControl, public virtual IContentBrushControl { public: - static constexpr StringView kControlType = u"TextBlock"; + static constexpr std::string_view kControlType = "TextBlock"; static std::unique_ptr<TextBlock> Create(std::string text, bool selectable = false) { @@ -32,7 +32,7 @@ class CRU_UI_API TextBlock : public NoChildControl, TextBlock& operator=(TextBlock&& other) = delete; ~TextBlock() override; - String GetControlType() const final { return kControlType.ToString(); } + std::string GetControlType() const final { return std::string(kControlType); } render::RenderObject* GetRenderObject() const override; |