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/TreeView.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/cru/ui/controls/TreeView.h') diff --git a/include/cru/ui/controls/TreeView.h b/include/cru/ui/controls/TreeView.h index 6c3c360b..dc74750a 100644 --- a/include/cru/ui/controls/TreeView.h +++ b/include/cru/ui/controls/TreeView.h @@ -52,14 +52,16 @@ class CRU_UI_API TreeViewItem : public Object { class CRU_UI_API TreeView : public Control { public: - constexpr static StringView kControlType = u"TreeView"; + constexpr static std::string_view kControlType = "TreeView"; TreeView(); CRU_DELETE_COPY(TreeView) CRU_DELETE_MOVE(TreeView) ~TreeView() override; - String GetControlType() const override { return kControlType.ToString(); } + std::string GetControlType() const override { + return std::string(kControlType); + } render::TreeRenderObject* GetRenderObject() { return &render_object_; } void ForEachChild(const std::function& predicate) override; -- cgit v1.2.3