From 92a2cfbfae4c19c7a8ed83e96161e7e49b97bd3b Mon Sep 17 00:00:00 2001 From: ageay Date: Wed, 23 Nov 2011 15:28:41 +0000 Subject: [PATCH] correction of a big bug. --- src/MEDLoader/MEDFileMesh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); -- 2.39.2