From: ageay Date: Wed, 23 Nov 2011 15:28:41 +0000 (+0000) Subject: correction of a big bug. X-Git-Tag: V6_4_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92a2cfbfae4c19c7a8ed83e96161e7e49b97bd3b;p=tools%2Fmedcoupling.git correction of a big bug. --- diff --git a/src/MEDLoader/MEDFileMesh.cxx b/src/MEDLoader/MEDFileMesh.cxx index 42287be6c..045c5f4dc 100644 --- a/src/MEDLoader/MEDFileMesh.cxx +++ b/src/MEDLoader/MEDFileMesh.cxx @@ -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::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());