From 2c8b9e7cd4b641bb85ac651a5cee2c69f1c88ce0 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 3 Jul 2014 14:59:59 +0200 Subject: [PATCH] initialize pointer with 0 --- Nef_S2/include/CGAL/Nef_S2/Sphere_map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nef_S2/include/CGAL/Nef_S2/Sphere_map.h b/Nef_S2/include/CGAL/Nef_S2/Sphere_map.h index 3e38d9ee30b..15dbda4bc5e 100644 --- a/Nef_S2/include/CGAL/Nef_S2/Sphere_map.h +++ b/Nef_S2/include/CGAL/Nef_S2/Sphere_map.h @@ -158,7 +158,7 @@ public: operator SHalfedge_handle() const { SHalfedge_handle e; CGAL::assign(e,Ibase::operator*()); return e; } operator SHalfloop_handle() const - { SHalfloop_handle l; CGAL::assign(l,Ibase::operator*()); return l; } + { SHalfloop_handle l=0; CGAL::assign(l,Ibase::operator*()); return l; } operator Object_handle() const { return Ibase::operator*(); } Object_handle& operator*() const { return Ibase::operator*(); } @@ -188,7 +188,7 @@ public: { SHalfedge_handle e; CGAL::assign(e,Ibase::operator*()); return SHalfedge_const_handle(e); } operator SHalfloop_const_handle() const - { SHalfloop_handle l; CGAL::assign(l,Ibase::operator*()); + { SHalfloop_handle l=0; CGAL::assign(l,Ibase::operator*()); return SHalfloop_const_handle(l); } operator Object_handle() const { return Ibase::operator*(); }