]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMDS/SMDS_MeshGroup.cxx
Salome HOME
Fix using of std::set::const_iterator as agrument of set::erase method.
[modules/smesh.git] / src / SMDS / SMDS_MeshGroup.cxx
index d00abe01361c6b157bcf924815b7cf6eff1950e7..77a8a45b2654f76c82a43f514dfdf8b1cd0ae7c8 100644 (file)
@@ -139,7 +139,8 @@ void SMDS_MeshGroup::Add(const SMDS_MeshElement * theElem)
 
 bool SMDS_MeshGroup::Remove(const SMDS_MeshElement * theElem)
 {
-  TIterator found = myElements.find(theElem);
+  std::set<const SMDS_MeshElement *>::iterator found
+    = myElements.find(theElem);
   if ( found != myElements.end() ) {
     myElements.erase(found);
     if (myElements.empty()) myType = SMDSAbs_All;