aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/NoChildControl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/NoChildControl.hpp')
-rw-r--r--include/cru/ui/NoChildControl.hpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/cru/ui/NoChildControl.hpp b/include/cru/ui/NoChildControl.hpp
index 1a31ae7e..0d8a8e34 100644
--- a/include/cru/ui/NoChildControl.hpp
+++ b/include/cru/ui/NoChildControl.hpp
@@ -3,9 +3,6 @@
namespace cru::ui {
class NoChildControl : public Control {
- private:
- static const std::vector<Control*> empty_control_vector;
-
protected:
NoChildControl() = default;
@@ -16,9 +13,8 @@ class NoChildControl : public Control {
NoChildControl& operator=(NoChildControl&& other) = delete;
~NoChildControl() override = default;
- protected:
- const std::vector<Control*>& GetChildren() const override final {
- return empty_control_vector;
- }
+ private:
+ using Control::AddChild;
+ using Control::RemoveChild;
};
} // namespace cru::ui