Salome HOME
updated copyright message
[modules/shaper.git] / src / CollectionPlugin / CollectionPlugin_GroupShape.cpp
index 0373800412e526e4ca0669717fa4ca4bda02d367..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
@@ -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();