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/Button.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cru/ui/controls/Button.h') diff --git a/include/cru/ui/controls/Button.h b/include/cru/ui/controls/Button.h index 717710e8..3c01be32 100644 --- a/include/cru/ui/controls/Button.h +++ b/include/cru/ui/controls/Button.h @@ -12,7 +12,7 @@ class CRU_UI_API Button : public SingleChildControl, public virtual IClickableControl, public virtual IBorderControl { public: - static constexpr StringView kControlType = u"Button"; + static constexpr std::string_view kControlType = "Button"; public: Button(); @@ -22,7 +22,7 @@ class CRU_UI_API Button : public SingleChildControl, Button& operator=(Button&& other) = delete; ~Button() override; - String GetControlType() const final { return kControlType.ToString(); } + std::string GetControlType() const final { return std::string(kControlType); } public: helper::ClickState GetClickState() override { -- cgit v1.2.3