From b8863c403a44c1c7ac35f1a1da92bbf3c8858552 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 9 Feb 2022 23:53:18 +0800 Subject: ... --- include/cru/ui/controls/NoChildControl.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/cru/ui/controls/NoChildControl.h') diff --git a/include/cru/ui/controls/NoChildControl.h b/include/cru/ui/controls/NoChildControl.h index 6d2168cb..1b864b20 100644 --- a/include/cru/ui/controls/NoChildControl.h +++ b/include/cru/ui/controls/NoChildControl.h @@ -13,8 +13,7 @@ class CRU_UI_API NoChildControl : public Control { NoChildControl& operator=(NoChildControl&& other) = delete; ~NoChildControl() override = default; - private: - using Control::AddChild; - using Control::RemoveChild; + public: + void ForEachChild(const std::function& callback) override; }; -} // namespace cru::ui +} // namespace cru::ui::controls -- cgit v1.2.3