From: mpv Date: Wed, 8 Jun 2005 05:07:25 +0000 (+0000) Subject: Porting to Mandrake 10.1 and new products: X-Git-Tag: T2_2_4a~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7c884f133be5e9b957189926f21c54367d7a898d;p=modules%2Fsmesh.git Porting to Mandrake 10.1 and new products: new compiler gcc 3.4.1 (new STL API) --- diff --git a/src/SMESH/SMESH_Pattern.cxx b/src/SMESH/SMESH_Pattern.cxx index 0aeffec35..047319f5f 100644 --- a/src/SMESH/SMESH_Pattern.cxx +++ b/src/SMESH/SMESH_Pattern.cxx @@ -2744,7 +2744,7 @@ bool SMESH_Pattern::Apply (std::set theFaces, list< list< int > >::iterator ll = myElemPointIDs.begin(); for ( ; ll != myElemPointIDs.end(); ++ll ) { - myElemXYZIDs.push_back(); + myElemXYZIDs.push_back(std::list()); // mpv: in 3.4.1 compiler there is no method with zero args list< int >& xyzIds = myElemXYZIDs.back(); list< int >& pIds = *ll; for ( list::iterator id = pIds.begin(); id != pIds.end(); id++ ) { @@ -2766,7 +2766,7 @@ bool SMESH_Pattern::Apply (std::set theFaces, link.insert( n2 ); // add the link to the map list< list< int > >& groups = linkPointIndListMap[ link ]; - groups.push_back(); + groups.push_back(list()); // mpv: in 3.4.1 compiler there is no method with zero args list< int >& indList = groups.back(); list< TPoint* > & linkPoints = getShapePoints( eID++ ); list< TPoint* >::iterator p = linkPoints.begin(); @@ -2846,7 +2846,7 @@ bool SMESH_Pattern::Apply (std::set theVolumes, list< list< int > >::iterator ll = myElemPointIDs.begin(); for ( ; ll != myElemPointIDs.end(); ++ll ) { - myElemXYZIDs.push_back(); + myElemXYZIDs.push_back(std::list()); // mpv: in 3.4.1 compiler there is no method with zero args list< int >& xyzIds = myElemXYZIDs.back(); list< int >& pIds = *ll; for ( list::iterator id = pIds.begin(); id != pIds.end(); id++ ) { @@ -2881,7 +2881,7 @@ bool SMESH_Pattern::Apply (std::set theVolumes, subNodes.insert( myOrderedNodes[ subIDs.back() - 1 ]); } list< list< int > >& groups = subPointIndListMap[ subNodes ]; - groups.push_back(); + groups.push_back(list()); // mpv: in 3.4.1 compiler there is no method with zero args list< int >& indList = groups.back(); // add points list< TPoint* > & points = getShapePoints( Id );