made null-initialization of FFp more explicit

This commit is contained in:
Luigi Malomo 2020-02-07 15:19:57 +01:00
parent 15ea014cf9
commit c220b3b415
1 changed files with 3 additions and 3 deletions

View File

@ -613,9 +613,9 @@ face of the ring of faces incident on a edge.
template <class T> class FFAdj: public T { template <class T> class FFAdj: public T {
public: public:
FFAdj(){ FFAdj(){
_ffp[0]=0; _ffp[0]=nullptr; // null == not initialized
_ffp[1]=0; _ffp[1]=nullptr;
_ffp[2]=0; _ffp[2]=nullptr;
} }
typename T::FacePointer &FFp(const int j) { assert(j>=0 && j<3); return _ffp[j]; } 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]; } typename T::FacePointer cFFp(const int j) const { assert(j>=0 && j<3); return _ffp[j]; }