From 72e939626b655e5f87113347c543b47264452264 Mon Sep 17 00:00:00 2001 From: stv Date: Thu, 30 Aug 2007 08:06:37 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxActionMgr.cxx | 5 ++++- src/Qtx/QtxActionToolMgr.cxx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Qtx/QtxActionMgr.cxx b/src/Qtx/QtxActionMgr.cxx index 366dd24e8..a1aa362b5 100644 --- a/src/Qtx/QtxActionMgr.cxx +++ b/src/Qtx/QtxActionMgr.cxx @@ -40,7 +40,10 @@ static qtx_actionlist qtx_separator_actions; void qtxSeparatorActionCleanup() { for ( qtx_actionlist::iterator it = qtx_separator_actions.begin(); it != qtx_separator_actions.end(); ++it ) - delete *it; + { + QAction* a = *it; + delete a; + } } /*! diff --git a/src/Qtx/QtxActionToolMgr.cxx b/src/Qtx/QtxActionToolMgr.cxx index a13c60e3c..47b339edd 100644 --- a/src/Qtx/QtxActionToolMgr.cxx +++ b/src/Qtx/QtxActionToolMgr.cxx @@ -594,8 +594,8 @@ bool QtxActionToolMgr::isVisible( const int id, const int tid ) const return false; bool vis = false; - const NodeList& lst = myToolBars[tid].nodes; - for ( NodeList::const_iterator it = lst.begin(); it != lst.end() && !vis; ++it ) + const ToolBarInfo& inf = myToolBars[tid]; + for ( NodeList::const_iterator it = inf.nodes.begin(); it != inf.nodes.end() && !vis; ++it ) { const ToolNode& node = *it; if ( node.id == id ) -- 2.39.2