From be1c0bc6ba241a89fc167bd4bfb19a78e02a549f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 15 Sep 2013 00:14:46 +0000 Subject: [PATCH] Mention that wxSizer::Clear() always deletes child sizers. The existence of "delete_windows" argument could mislead people into thinking that sizers were not deleted neither when it had false value, see #15475. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/sizer.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interface/wx/sizer.h b/interface/wx/sizer.h index e4dde3e..6eafc58 100644 --- a/interface/wx/sizer.h +++ b/interface/wx/sizer.h @@ -326,7 +326,13 @@ public: /** Detaches all children from the sizer. + If @a delete_windows is @true then child windows will also be deleted. + + Notice that child sizers are always deleted, as a general consequence + of the principle that sizers own their sizer children, but don't own + their window children (because they are already owned by their parent + windows). */ virtual void Clear(bool delete_windows = false); -- 2.7.4