From: Vadim Zeitlin Date: Sun, 15 Sep 2013 00:14:46 +0000 (+0000) Subject: Mention that wxSizer::Clear() always deletes child sizers. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/be1c0bc6ba241a89fc167bd4bfb19a78e02a549f 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 --- diff --git a/interface/wx/sizer.h b/interface/wx/sizer.h index e4dde3e694..6eafc58946 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);