From 2f4f632fc7d4488107b9dd2cc03c46a969b22b76 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Tue, 11 May 2004 14:12:13 +0000 Subject: [PATCH] general comment: minor modifications to compile with g++. Almost all insertions of "typename" keyword and new line at the end of file --- vcg/complex/trimesh/allocate.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index b011128a..76869d55 100644 --- a/vcg/complex/trimesh/allocate.h +++ b/vcg/complex/trimesh/allocate.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2004/05/10 13:24:21 cignoni +Updated names of adj functions and added ending newline + Revision 1.5 2004/04/21 14:06:10 ganovelli #ifndef added @@ -107,7 +110,7 @@ static VertexIterator AddVertices(MeshType &m,int n, PointerUpdater &pu) { - FaceIterator last=0; + FaceIterator last = (FaceIterator)0; pu.Clear(); if(m.face.empty()) { pu.oldBase=0; // if the vector is empty we cannot find the last valid element - last=0; } else { pu.oldBase=&*m.face.begin(); last=m.face.end(); } for(int i=0; i &pu } // e poiche' lo spazio e' cambiato si ricalcola anche last da zero unsigned int siz=m.face.size()-n; - if(last!=0) + if(last!=(FaceIterator)0) { last = m.face.begin(); advance(last,siz);