X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_MesherHelper.cxx;h=0b7d4fb85e2ffe156a9dc859c65786086408d293;hb=b7cae6675fbeee96b633ed06131b565d5b19f720;hp=eb138d2ed57321d6802d5973270322ad089b0008;hpb=55510e5ccd337f72bb1caa755b131cf0916d91b3;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_MesherHelper.cxx b/src/SMESH/SMESH_MesherHelper.cxx index eb138d2ed..0b7d4fb85 100644 --- a/src/SMESH/SMESH_MesherHelper.cxx +++ b/src/SMESH/SMESH_MesherHelper.cxx @@ -723,7 +723,7 @@ SMDS_MeshFace* SMESH_MesherHelper::AddFace(const SMDS_MeshNode* n1, const SMDS_MeshNode* n2, const SMDS_MeshNode* n3, const int id, - const bool force3d) + const bool force3d) { SMESHDS_Mesh * meshDS = GetMeshDS(); SMDS_MeshFace* elem = 0; @@ -764,7 +764,7 @@ SMDS_MeshFace* SMESH_MesherHelper::AddFace(const SMDS_MeshNode* n1, const SMDS_MeshNode* n3, const SMDS_MeshNode* n4, const int id, - const bool force3d) + const bool force3d) { SMESHDS_Mesh * meshDS = GetMeshDS(); SMDS_MeshFace* elem = 0; @@ -824,7 +824,7 @@ SMDS_MeshVolume* SMESH_MesherHelper::AddVolume(const SMDS_MeshNode* n1, const SMDS_MeshNode* n5, const SMDS_MeshNode* n6, const int id, - const bool force3d) + const bool force3d) { SMESHDS_Mesh * meshDS = GetMeshDS(); SMDS_MeshVolume* elem = 0; @@ -871,7 +871,7 @@ SMDS_MeshVolume* SMESH_MesherHelper::AddVolume(const SMDS_MeshNode* n1, const SMDS_MeshNode* n3, const SMDS_MeshNode* n4, const int id, - const bool force3d) + const bool force3d) { SMESHDS_Mesh * meshDS = GetMeshDS(); SMDS_MeshVolume* elem = 0; @@ -913,7 +913,7 @@ SMDS_MeshVolume* SMESH_MesherHelper::AddVolume(const SMDS_MeshNode* n1, const SMDS_MeshNode* n4, const SMDS_MeshNode* n5, const int id, - const bool force3d) + const bool force3d) { SMDS_MeshVolume* elem = 0; if(!myCreateQuadratic) { @@ -964,7 +964,7 @@ SMDS_MeshVolume* SMESH_MesherHelper::AddVolume(const SMDS_MeshNode* n1, const SMDS_MeshNode* n7, const SMDS_MeshNode* n8, const int id, - const bool force3d) + const bool force3d) { SMESHDS_Mesh * meshDS = GetMeshDS(); SMDS_MeshVolume* elem = 0; @@ -1406,7 +1406,7 @@ namespace { // Structures used by FixQuadraticElements() bool IsBoundary() const { return !_qfaces[1]; } void RemoveFace( const QFace* face ) const - { _qfaces[(face == _qfaces[1])] = 0; if (!_qfaces[0]) swap(_qfaces[0],_qfaces[1]); } + { _qfaces[(face == _qfaces[1])] = 0; if (!_qfaces[0]) std::swap(_qfaces[0],_qfaces[1]); } const QFace* NextFace( const QFace* f ) const { return _qfaces[0]==f ? _qfaces[1] : _qfaces[0]; } @@ -1425,7 +1425,7 @@ namespace { // Structures used by FixQuadraticElements() // -------------------------------------------------------------------- typedef list< TChainLink > TChain; typedef set < TChainLink > TLinkSet; - typedef TLinkSet::iterator TLinkInSet; + typedef TLinkSet::const_iterator TLinkInSet; const int theFirstStep = 5; @@ -1513,7 +1513,7 @@ namespace { // Structures used by FixQuadraticElements() ostream& operator << (ostream& out, const QFace& f) { out <<"QFace nodes: "/*<< &f << " "*/; - for ( TIDSortedElemSet::iterator n = f.begin(); n != f.end(); ++n ) + for ( TIDSortedElemSet::const_iterator n = f.begin(); n != f.end(); ++n ) out << (*n)->GetID() << " "; out << " \tvolumes: " << (f._volumes[0] ? f._volumes[0]->GetID() : 0) << " " @@ -1860,7 +1860,7 @@ namespace { // Structures used by FixQuadraticElements() if ( iFaceCont > 0 ) // continues faces found, set one by the other { if ( iFaceCont != 1 ) - swap( _faces[1], _faces[iFaceCont] ); + std::swap( _faces[1], _faces[iFaceCont] ); } else if ( _faces.size() > 1 ) // not found, set NULL by the first face { @@ -1955,7 +1955,7 @@ namespace { // Structures used by FixQuadraticElements() } } curBndLinks->clear(); - swap( curBndLinks, newBndLinks ); + std::swap( curBndLinks, newBndLinks ); } }