From c6f5cfb78dfe9f2bec05bfb524cd73d5ad38af8a Mon Sep 17 00:00:00 2001 From: Luigi Malomo Date: Fri, 7 Feb 2020 15:22:46 +0100 Subject: [PATCH] removed weird reference-to-pointer parameters --- vcg/simplex/face/topology.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vcg/simplex/face/topology.h b/vcg/simplex/face/topology.h index 778867e1..82d3f485 100644 --- a/vcg/simplex/face/topology.h +++ b/vcg/simplex/face/topology.h @@ -289,6 +289,7 @@ void FFDetach(FaceType & f, const int e) } +// TODO: deprecate the signature of the functions below and use references /** This function attach the face (via the edge z1) to another face (via the edge z2). It's possible to use it also in non-two manifold situation. The function cannot be applicated if the adjacencies among faces aren't define. @param z1 Index of the edge @@ -296,7 +297,7 @@ void FFDetach(FaceType & f, const int e) @param z2 The edge of the face f2 */ template -void FFAttach(FaceType * &f, int z1, FaceType *&f2, int z2) +void FFAttach(FaceType * f, int z1, FaceType * f2, int z2) { //typedef FEdgePosB< FACE_TYPE > ETYPE; vcg::face::Pos< FaceType > EPB(f2,z2); @@ -336,7 +337,7 @@ void FFAttach(FaceType * &f, int z1, FaceType *&f2, int z2) @param z2 The edge of the face f2 */ template -void FFAttachManifold(FaceType * &f1, int z1, FaceType *&f2, int z2) +void FFAttachManifold(FaceType * f1, int z1, FaceType * f2, int z2) { assert(IsBorder(*f1,z1) || f1->FFp(z1)==0); assert(IsBorder(*f2,z2) || f2->FFp(z2)==0); @@ -350,7 +351,7 @@ void FFAttachManifold(FaceType * &f1, int z1, FaceType *&f2, int z2) // This one should be called only on uniitialized faces. template -void FFSetBorder(FaceType * &f1, int z1) +void FFSetBorder(FaceType * f1, int z1) { assert(f1->FFp(z1)==0 || IsBorder(*f1,z1));