From c1dbad5fdf0560983e6c832eddded6f610eae94e Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 10 Feb 2022 19:49:06 +0800 Subject: ... --- src/theme_builder/components/StyleRuleSetEditor.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/theme_builder/components/StyleRuleSetEditor.cpp') diff --git a/src/theme_builder/components/StyleRuleSetEditor.cpp b/src/theme_builder/components/StyleRuleSetEditor.cpp index 313b53da..072b8307 100644 --- a/src/theme_builder/components/StyleRuleSetEditor.cpp +++ b/src/theme_builder/components/StyleRuleSetEditor.cpp @@ -3,14 +3,9 @@ namespace cru::theme_builder { using namespace cru::ui::controls; -StyleRuleSetEditor::StyleRuleSetEditor() { - main_layout_ = FlexLayout::Create(); -} +StyleRuleSetEditor::StyleRuleSetEditor() {} -StyleRuleSetEditor::~StyleRuleSetEditor() { - main_layout_->RemoveFromParent(); - delete main_layout_; -} +StyleRuleSetEditor::~StyleRuleSetEditor() { main_layout_.RemoveFromParent(); } void StyleRuleSetEditor::BindStyleRuleSet( std::shared_ptr rule_set) { -- cgit v1.2.3