From 8a7fc527d73e7f87516719b773fce5484104c7bd Mon Sep 17 00:00:00 2001 From: ptv Date: Tue, 1 Sep 2009 03:53:08 +0000 Subject: [PATCH] remove compilation error on Windows --- src/SMESH/SMESH_MeshEditor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 09bc9e4cb..89354777b 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -8239,7 +8239,7 @@ bool SMESH_MeshEditor::doubleNodes( SMESHDS_Mesh* theMeshDS, { // iterate on through element and duplicate them (by nodes duplication) bool res = false; - TIDSortedElemSet::iterator elemItr = theElems.begin(); + const TIDSortedElemSet::iterator elemItr = theElems.begin(); for ( ; elemItr != theElems.end(); ++elemItr ) { const SMDS_MeshElement* anElem = *elemItr; @@ -8329,7 +8329,7 @@ bool SMESH_MeshEditor::DoubleNodesInRegion( const TIDSortedElemSet& theElems, // iterates on indicated elements and get elements by back references from their nodes TIDSortedElemSet anAffected; - TIDSortedElemSet::iterator elemItr = theElems.begin(); + const TIDSortedElemSet::iterator elemItr = theElems.begin(); for ( ; elemItr != theElems.end(); ++elemItr ) { SMDS_MeshElement* anElem = (SMDS_MeshElement*)*elemItr; -- 2.39.2