From 3e2d57d7c9669eee4be52ae4160e0c9d6c975fde Mon Sep 17 00:00:00 2001 From: rathnor Date: Sat, 24 May 2003 12:34:16 +0000 Subject: little correction when removing menu items --- src/FbTk/Menu.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index 37d40fc..04bcc03 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Menu.cc,v 1.23 2003/05/24 05:49:31 rathnor Exp $ +// $Id: Menu.cc,v 1.24 2003/05/24 12:34:16 rathnor Exp $ //use GNU extensions #ifndef _GNU_SOURCE @@ -181,10 +181,7 @@ Menu::~Menu() { if (shown && shown->window() == window()) shown = 0; - while (!menuitems.empty()) { - delete menuitems.back(); - menuitems.pop_back(); - } + removeAll(); if (menu.title_pixmap) m_image_ctrl.removeImage(menu.title_pixmap); -- cgit v0.11.2