summaryrefslogtreecommitdiff
path: root/src/CGAL_Nef_polyhedron.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CGAL_Nef_polyhedron.cc')
-rw-r--r--src/CGAL_Nef_polyhedron.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CGAL_Nef_polyhedron.cc b/src/CGAL_Nef_polyhedron.cc
index ea08ca1..975c9a4 100644
--- a/src/CGAL_Nef_polyhedron.cc
+++ b/src/CGAL_Nef_polyhedron.cc
@@ -85,7 +85,7 @@ PolySet *CGAL_Nef_polyhedron::convertToPolyset()
CGAL_Nef_polyhedron CGAL_Nef_polyhedron::copy() const
{
CGAL_Nef_polyhedron copy = *this;
- if (copy.p2) copy.p2 = new CGAL_Nef_polyhedron2(*copy.p2);
- else if (copy.p3) copy.p3 = new CGAL_Nef_polyhedron3(*copy.p3);
+ if (copy.p2) copy.p2.reset(new CGAL_Nef_polyhedron2(*copy.p2));
+ else if (copy.p3) copy.p3.reset(new CGAL_Nef_polyhedron3(*copy.p3));
return copy;
}
contact: Jan Huwald // Impressum