From c220b3b4157eefc289dc8872e1f79480dd9e8a26 Mon Sep 17 00:00:00 2001 From: Luigi Malomo Date: Fri, 7 Feb 2020 15:19:57 +0100 Subject: [PATCH] made null-initialization of FFp more explicit --- vcg/simplex/face/component.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcg/simplex/face/component.h b/vcg/simplex/face/component.h index cca7b210..ebdc3739 100644 --- a/vcg/simplex/face/component.h +++ b/vcg/simplex/face/component.h @@ -613,9 +613,9 @@ face of the ring of faces incident on a edge. template class FFAdj: public T { public: FFAdj(){ - _ffp[0]=0; - _ffp[1]=0; - _ffp[2]=0; + _ffp[0]=nullptr; // null == not initialized + _ffp[1]=nullptr; + _ffp[2]=nullptr; } typename T::FacePointer &FFp(const int j) { assert(j>=0 && j<3); return _ffp[j]; } typename T::FacePointer cFFp(const int j) const { assert(j>=0 && j<3); return _ffp[j]; }