]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/CollectionPlugin/CollectionPlugin_GroupShape.cpp
Salome HOME
updated copyright message
[modules/shaper.git] / src / CollectionPlugin / CollectionPlugin_GroupShape.cpp
index 0a0f90d25ea9b9872287ee6c28e46b0e92ef5f17..e74ccabfa37ef3695b344e916568bbbd3d9a7527 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -23,7 +23,7 @@
 #include <TopoDS_Iterator.hxx>
 
 void CollectionPlugin_GroupShape::execute()
-{  
+{
   ResultGroupPtr aGroup;
   CollectionPlugin_GroupMerge::execute(aGroup);
   GeomShapePtr aCompound = aGroup->shape();
@@ -35,9 +35,8 @@ void CollectionPlugin_GroupShape::execute()
     /// unique shape, remove compound on type
 
     TopoDS_Iterator anIt(aShape);
-    TopoDS_Shape aShape = anIt.Value();
     std::shared_ptr<GeomAPI_Shape> aRes(new GeomAPI_Shape);
-    aRes->setImpl(new TopoDS_Shape(aShape));
+    aRes->setImpl(new TopoDS_Shape(anIt.Value()));
     aGroup->store(GeomShapePtr());
     aGroup->store(aRes);
     aCompound = aGroup->shape();