From: enk Date: Thu, 8 Sep 2005 09:53:18 +0000 (+0000) Subject: bad variables names corrected X-Git-Tag: V3_1_0a1~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aa7d4ebe83845ab5628924bb73e826048cb3c0ca;p=modules%2Fgui.git bad variables names corrected "list" to "thelist" "map" to "themap" --- diff --git a/src/SalomeApp/SalomeApp_OBSelector.cxx b/src/SalomeApp/SalomeApp_OBSelector.cxx index 9c77418a0..655f80998 100644 --- a/src/SalomeApp/SalomeApp_OBSelector.cxx +++ b/src/SalomeApp/SalomeApp_OBSelector.cxx @@ -37,7 +37,7 @@ OB_Browser* SalomeApp_OBSelector::browser() const /*! Gets selection. */ -void SalomeApp_OBSelector::getSelection( SUIT_DataOwnerPtrList& list ) const +void SalomeApp_OBSelector::getSelection( SUIT_DataOwnerPtrList& thelist ) const { if ( !myBrowser ) return; @@ -51,26 +51,27 @@ void SalomeApp_OBSelector::getSelection( SUIT_DataOwnerPtrList& list ) const { Handle( SALOME_InteractiveObject ) aSObj = new SALOME_InteractiveObject ( obj->entry(), obj->componentDataType(), obj->name() ); - list.append( SUIT_DataOwnerPtr( new SalomeApp_DataOwner( aSObj ) ) ); + SalomeApp_DataOwner* owner = new SalomeApp_DataOwner( aSObj ); + thelist.append( SUIT_DataOwnerPtr( owner ) ); } } } /*!Sets selection.*/ -void SalomeApp_OBSelector::setSelection( const SUIT_DataOwnerPtrList& list ) +void SalomeApp_OBSelector::setSelection( const SUIT_DataOwnerPtrList& thelist ) { if ( !myBrowser ) return; - QMap map; - fillEntries( map ); + QMap themap; + fillEntries( themap ); DataObjectList objList; - for ( SUIT_DataOwnerPtrList::const_iterator it = list.begin(); it != list.end(); ++it ) + for ( SUIT_DataOwnerPtrList::const_iterator it = thelist.begin(); it != thelist.end(); ++it ) { const SalomeApp_DataOwner* owner = dynamic_cast( (*it).operator->() ); - if ( owner && map.contains( owner->entry() ) ) - objList.append( map[owner->entry()] ); + if ( owner && themap.contains( owner->entry() ) ) + objList.append( themap[owner->entry()] ); } myBrowser->setSelected( objList );