From 06f16479ae1b727252404b763b60c924e3fe7903 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 3 Nov 2025 20:04:52 +0800 Subject: Remove Object2. --- include/cru/ui/style/StyleRule.h | 7 +------ include/cru/ui/style/StyleRuleSet.h | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'include/cru/ui/style') diff --git a/include/cru/ui/style/StyleRule.h b/include/cru/ui/style/StyleRule.h index e7f4d390..382cd664 100644 --- a/include/cru/ui/style/StyleRule.h +++ b/include/cru/ui/style/StyleRule.h @@ -9,7 +9,7 @@ namespace cru::ui::style { * \brief An immutable style rule contains a condition and a styler. * \remarks This class is immutable and has value semantics. */ -class CRU_UI_API StyleRule : public Object { +class CRU_UI_API StyleRule { public: static ClonablePtr Create(ClonablePtr condition, ClonablePtr styler, @@ -21,11 +21,6 @@ class CRU_UI_API StyleRule : public Object { StyleRule(ClonablePtr condition, ClonablePtr styler, std::string name = {}); - CRU_DEFAULT_COPY(StyleRule) - CRU_DEFAULT_MOVE(StyleRule) - - ~StyleRule() override = default; - public: std::string GetName() const { return name_; } Condition* GetCondition() const { return condition_.get(); } diff --git a/include/cru/ui/style/StyleRuleSet.h b/include/cru/ui/style/StyleRuleSet.h index fae9ab5f..0b7a237d 100644 --- a/include/cru/ui/style/StyleRuleSet.h +++ b/include/cru/ui/style/StyleRuleSet.h @@ -17,10 +17,6 @@ class CRU_UI_API StyleRuleSet : public Object, public model::IListChangeNotify { public: StyleRuleSet() = default; explicit StyleRuleSet(std::shared_ptr parent); - - CRU_DELETE_COPY(StyleRuleSet) - CRU_DELETE_MOVE(StyleRuleSet) - ~StyleRuleSet() override = default; public: -- cgit v1.2.3