Salome HOME
bos #20661 EDF 22847 - Move to the end
[modules/shaper.git] / src / BuildPlugin / BuildPlugin_Solid.cpp
index fc6d99f519078958e2eb08de4deeac2d24218780..cd1cb0c863be282f3017761c48f8de3f1f5ae4c5 100644 (file)
@@ -57,10 +57,7 @@ GeomShapePtr BuildPlugin_Solid::getSingleSubshape(const GeomShapePtr& theCompoun
 {
   if (theCompound->shapeType() == GeomAPI_Shape::COMPOUND) {
     GeomAPI_ShapeIterator anIt(theCompound);
-    GeomShapePtr aFoundSub;
-    for (; anIt.more() && !aFoundSub; anIt.next()) {
-      return anIt.current();
-    }
+    return anIt.current();
   }
   return theCompound;
 }