]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
correction of a big bug.
authorageay <ageay>
Wed, 23 Nov 2011 15:28:41 +0000 (15:28 +0000)
committerageay <ageay>
Wed, 23 Nov 2011 15:28:41 +0000 (15:28 +0000)
src/MEDLoader/MEDFileMesh.cxx

index 42287be6cc952ab1da1b5d32ce427f9bbbc90cae..045c5f4dc67c3498691e108b0e1b928a795c4709 100644 (file)
@@ -413,8 +413,8 @@ void MEDFileMesh::changeFamilyName(const char *oldName, const char *newName) thr
       throw INTERP_KERNEL::Exception(oss.str().c_str());
     }
   std::string nname(newName);
-  it=_families.find(nname);
-  if(it!=_families.end())
+  std::map<std::string, int >::iterator it2=_families.find(nname);
+  if(it2!=_families.end())
     {
       std::ostringstream oss; oss << "Such familyname \"" << newName << " already exists ! Kill it before !";
       throw INTERP_KERNEL::Exception(oss.str().c_str());