From 23e3b1b978526664f5eed907d45664b08115a38f Mon Sep 17 00:00:00 2001 From: abd Date: Tue, 7 Oct 2008 13:24:58 +0000 Subject: [PATCH] Fix compilation problems on Win32 Platform: - double value name in one scope --- src/GEOMToolsGUI/GEOMToolsGUI_DeleteDlg.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/GEOMToolsGUI/GEOMToolsGUI_DeleteDlg.cxx b/src/GEOMToolsGUI/GEOMToolsGUI_DeleteDlg.cxx index e0f7f93f9..ebfdcf3f8 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI_DeleteDlg.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI_DeleteDlg.cxx @@ -32,7 +32,7 @@ #include #include #include - + static bool isEntryLess( const QString& e1, const QString& e2 ) { QStringList el1 = QStringList::split(":", e1); @@ -50,14 +50,14 @@ static bool isEntryLess( const QString& e1, const QString& e2 ) static QStringList objectsToNames( const QMap& objects ) { QStringList entries; - for ( QMap::ConstIterator it = objects.begin(); it != objects.end(); ++it ) { - QString entry = it.key(); + for ( QMap::ConstIterator cit = objects.begin(); cit != objects.end(); ++cit ) { + QString entry = cit.key(); QStringList::Iterator it; bool added = false; for ( it = entries.begin(); it != entries.end() && !added; ++it ) { if ( isEntryLess( entry, *it ) ) { - entries.insert( it, entry ); - added = true; + entries.insert( it, entry ); + added = true; } } if ( !added ) @@ -73,13 +73,13 @@ static QStringList objectsToNames( const QMap& objects ) } /*! - \brief Constructor. - \param parent parent widget +\brief Constructor. +\param parent parent widget */ GEOMToolsGUI_DeleteDlg::GEOMToolsGUI_DeleteDlg( QWidget* parent, - const QMap& objects, - bool deleteAll ) -: QDialog( parent, "GEOMToolsGUI_DeleteDlg", true ) + const QMap& objects, + bool deleteAll ) + : QDialog( parent, "GEOMToolsGUI_DeleteDlg", true ) { setCaption( tr( "GEOM_DELETE_OBJECTS" ) ); setSizeGripEnabled( true );