aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/flex_layout.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/controls/flex_layout.hpp')
-rw-r--r--src/ui/controls/flex_layout.hpp6
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