From 3b875091c445b7465b9bd044914318989a94d2ad Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 21 Nov 2025 21:43:42 +0800 Subject: Clean codes. Remove member function const. --- include/cru/ui/controls/StackLayout.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'include/cru/ui/controls/StackLayout.h') diff --git a/include/cru/ui/controls/StackLayout.h b/include/cru/ui/controls/StackLayout.h index db646807..455a99be 100644 --- a/include/cru/ui/controls/StackLayout.h +++ b/include/cru/ui/controls/StackLayout.h @@ -1,6 +1,5 @@ #pragma once #include "LayoutControl.h" - #include "../render/StackLayoutRenderObject.h" namespace cru::ui::controls { @@ -9,13 +8,8 @@ using render::StackChildLayoutData; class CRU_UI_API StackLayout : public LayoutControl { public: - static constexpr std::string_view kControlType = "StackLayout"; + static constexpr auto kControlName = "StackLayout"; StackLayout(); - CRU_DELETE_COPY(StackLayout) - CRU_DELETE_MOVE(StackLayout) - ~StackLayout() override; - - std::string GetControlType() const final { return std::string(kControlType); } }; } // namespace cru::ui::controls -- cgit v1.2.3