From 33afe8f744587b9a8da67e85298bb2e1c28d083d Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 10 Apr 2009 02:20:04 +0200 Subject: Reduced the GCContainer to be even more trivial A container that deletes all its children on destruction doesn't have to be so complicated. Also renamed it to simply Container, since I think it should simply be default behavior. WindowContainer and Popup classes now inherit from this Container. --- src/gui/widgets/popup.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/gui/widgets/popup.cpp') diff --git a/src/gui/widgets/popup.cpp b/src/gui/widgets/popup.cpp index 9040d6b2..7d73e749 100644 --- a/src/gui/widgets/popup.cpp +++ b/src/gui/widgets/popup.cpp @@ -65,13 +65,6 @@ Popup::~Popup() savePopupConfiguration(); - while (!mWidgets.empty()) - { - gcn::Widget *w = mWidgets.front(); - remove(w); - delete(w); - } - mSkin->instances--; } -- cgit v1.2.3-70-g09d2