From: vsr Date: Tue, 11 Mar 2008 12:58:16 +0000 (+0000) Subject: Avoid compilation problem because of using standard libraries X-Git-Tag: V5_0_0a1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2983b6f7f859bf9f48a881cab72932c3b53eefed;p=modules%2Fgeom.git Avoid compilation problem because of using standard libraries --- diff --git a/src/BasicGUI/BasicGUI_CurveDlg.cxx b/src/BasicGUI/BasicGUI_CurveDlg.cxx index fc715474c..cf5023b5f 100644 --- a/src/BasicGUI/BasicGUI_CurveDlg.cxx +++ b/src/BasicGUI/BasicGUI_CurveDlg.cxx @@ -204,7 +204,7 @@ bool BasicGUI_CurveDlg::ClickOnApply() * \retval -1, if point not in list, else 1 in list */ //================================================================================= -static int isPointInList( list& thePoints, +static int isPointInList( std::list& thePoints, GEOM::GEOM_Object_var& theObject ) { int len = thePoints.size(); @@ -213,8 +213,8 @@ static int isPointInList( list& thePoints, return -1; } - for ( list::iterator i = thePoints.begin(); i != thePoints.end(); i++ ) { - if ( string( (*i)->GetEntry() ) == string( theObject->GetEntry() ) ) { + for ( std::list::iterator i = thePoints.begin(); i != thePoints.end(); i++ ) { + if ( std::string( (*i)->GetEntry() ) == std::string( theObject->GetEntry() ) ) { return 1; } } @@ -229,14 +229,14 @@ static int isPointInList( list& thePoints, * \li \a theNewPoints - not ordered sequence with necessary points */ //================================================================================= -static void removeUnnecessaryPnt( list& theOldPoints, +static void removeUnnecessaryPnt( std::list& theOldPoints, GEOM::ListOfGO_var& theNewPoints ) { - list objs_to_remove; - for ( list::iterator i = theOldPoints.begin(); i != theOldPoints.end(); i++ ) { + std::list objs_to_remove; + for ( std::list::iterator i = theOldPoints.begin(); i != theOldPoints.end(); i++ ) { bool found = false; for ( int j = 0; j < theNewPoints->length() && !found ; j++ ) { - if ( string( (*i)->GetEntry() ) == string( theNewPoints[j]->GetEntry() ) ) { + if ( std::string( (*i)->GetEntry() ) == std::string( theNewPoints[j]->GetEntry() ) ) { found = true; } } @@ -245,7 +245,7 @@ static void removeUnnecessaryPnt( list& theOldPoints, //cout << "removed: " << (*i)->GetEntry() << endl; } } - for ( list::iterator i = objs_to_remove.begin(); i != objs_to_remove.end(); i++ ) { + for ( std::list::iterator i = objs_to_remove.begin(); i != objs_to_remove.end(); i++ ) { theOldPoints.remove( *i ); } } @@ -330,7 +330,7 @@ void BasicGUI_CurveDlg::SelectionIntoArgument() myPoints->length( aList.size() ); int k = 0; - for ( list::iterator j = aList.begin(); j != aList.end(); j++ ) + for ( std::list::iterator j = aList.begin(); j != aList.end(); j++ ) myPoints[k++] = *j; if ( IOC == 0 ) @@ -341,7 +341,7 @@ void BasicGUI_CurveDlg::SelectionIntoArgument() // if ( myOrderedSel.size() == myPoints->length() ) { myPoints->length( myOrderedSel.size() ); k = 0; - for ( list::iterator j = myOrderedSel.begin(); j != myOrderedSel.end(); j++ ) + for ( std::list::iterator j = myOrderedSel.begin(); j != myOrderedSel.end(); j++ ) myPoints[k++] = *j; // } diff --git a/src/BasicGUI/BasicGUI_CurveDlg.h b/src/BasicGUI/BasicGUI_CurveDlg.h index 3ba5bfffd..3a4d234dc 100644 --- a/src/BasicGUI/BasicGUI_CurveDlg.h +++ b/src/BasicGUI/BasicGUI_CurveDlg.h @@ -56,7 +56,7 @@ private: private: DlgRef_1Sel* GroupPoints; GEOM::ListOfGO_var myPoints; - list myOrderedSel; //!< This list used for managing orderes selection + std::list myOrderedSel; //!< This list used for managing orderes selection private slots: void ClickOnOk();