From: stv Date: Thu, 30 Aug 2007 08:06:37 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: For_HDF~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72e939626b655e5f87113347c543b47264452264;p=modules%2Fgui.git *** empty log message *** --- 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 )