diff options
author | crupest <crupest@outlook.com> | 2019-03-24 19:44:31 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-24 19:44:31 +0800 |
commit | b76e435faca204f830644047077ab08930dc8f9c (patch) | |
tree | 8bca146bc7443a704d3cb4b71b36e632cb505c25 /src/ui/controls/flex_layout.hpp | |
parent | 79d1d76509dbf6cf9c79f8eb55968535982975aa (diff) | |
download | cru-b76e435faca204f830644047077ab08930dc8f9c.tar.gz cru-b76e435faca204f830644047077ab08930dc8f9c.tar.bz2 cru-b76e435faca204f830644047077ab08930dc8f9c.zip |
...
Diffstat (limited to 'src/ui/controls/flex_layout.hpp')
-rw-r--r-- | src/ui/controls/flex_layout.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/controls/flex_layout.hpp b/src/ui/controls/flex_layout.hpp index 2ab3e259..9ceef1f6 100644 --- a/src/ui/controls/flex_layout.hpp +++ b/src/ui/controls/flex_layout.hpp @@ -1,6 +1,8 @@ #pragma once #include "pre.hpp" +#include <memory> + #include "ui/layout_control.hpp" namespace cru::ui::render { @@ -23,7 +25,7 @@ class FlexLayout : public LayoutControl { FlexLayout(FlexLayout&& other) = delete; FlexLayout& operator=(const FlexLayout& other) = delete; FlexLayout& operator=(FlexLayout&& other) = delete; - ~FlexLayout() override; + ~FlexLayout() override = default; StringView GetControlType() const override final { return control_type; } @@ -34,6 +36,6 @@ class FlexLayout : public LayoutControl { void OnRemoveChild(Control* child, int position) override; private: - render::FlexLayoutRenderObject* render_object_; + std::shared_ptr<render::FlexLayoutRenderObject> render_object_; }; } // namespace cru::ui::controls |