From: vsr Date: Wed, 29 Dec 2010 13:17:10 +0000 (+0000) Subject: Code refactoring X-Git-Tag: StartingPortingMED3~171 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e74edb9fb4729d77cb0f24905c1fb7fbc7a68fda;p=modules%2Fsmesh.git Code refactoring --- diff --git a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx index 1aab1f908..2dbf37e6a 100644 --- a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx @@ -1187,11 +1187,10 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged() SALOME_ListIteratorOfListIO anIt (aList); for (; anIt.More(); anIt.Next()) { - testResult = Standard_False; - aGeomGroup = GEOMBase::ConvertIOinGEOMObject(anIt.Value(), testResult); + aGeomGroup = GEOMBase::ConvertIOinGEOMObject(anIt.Value()); // Check if the object is a geometry group - if (!testResult || CORBA::is_nil(aGeomGroup)) + if (CORBA::is_nil(aGeomGroup)) continue; // Check if group constructed on the same shape as a mesh or on its child