From 9f419314b646bf57dfc3fcbb509b3be2c974e3fd Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 14:33:16 +0800 Subject: Remove String on Linux. --- include/cru/ui/controls/TextBox.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cru/ui/controls/TextBox.h') diff --git a/include/cru/ui/controls/TextBox.h b/include/cru/ui/controls/TextBox.h index 13f5d356..adb9895e 100644 --- a/include/cru/ui/controls/TextBox.h +++ b/include/cru/ui/controls/TextBox.h @@ -18,14 +18,14 @@ class CRU_UI_API TextBox : public NoChildControl, public virtual IContentBrushControl, public virtual IFontControl { public: - static constexpr StringView control_type = u"TextBox"; + static constexpr std::string_view control_type = "TextBox"; TextBox(); CRU_DELETE_COPY(TextBox) CRU_DELETE_MOVE(TextBox) ~TextBox() override; - String GetControlType() const final { return control_type.ToString(); } + std::string GetControlType() const final { return std::string(control_type); } render::RenderObject* GetRenderObject() const override; -- cgit v1.2.3