From 917343b0f5684bfebd1bf76fe6461c87f18455cf Mon Sep 17 00:00:00 2001 From: ganovelli Date: Fri, 20 Mar 2009 10:22:16 +0000 Subject: [PATCH] removed the (useless) template parameter to Per[XXX]DeleteAttribute(mesh,name) --- vcg/complex/trimesh/allocate.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index b3619990..dc3a2865 100644 --- a/vcg/complex/trimesh/allocate.h +++ b/vcg/complex/trimesh/allocate.h @@ -765,14 +765,13 @@ public: assert(0); } - template static void DeletePerVertexAttribute( MeshType & m, std::string name){ HandlesIterator i; HandlesWrapper h1; h1._name = name; i = m.vert_attr.find(h1); assert(i!=m.vert_attr.end()); - delete ((SimpleTempData*)(*i)._handle); + delete ((SimpleTempDataBase*)(*i)._handle); m.vert_attr.erase(i); } @@ -838,14 +837,13 @@ public: assert(0); } - template static void DeletePerEdgeAttribute( MeshType & m, std::string name){ HandlesIterator i; HandlesWrapper h1; h1._name = name; i = m.edge_attr.find(h1); assert(i!=m.edge_attr.end()); - delete ((SimpleTempData*)(*i)._handle); + delete ((SimpleTempDataBase*)(*i)._handle); m.edge_attr.erase(i); } @@ -911,14 +909,13 @@ public: assert(0); } - template static void DeletePerFaceAttribute( MeshType & m, std::string name){ HandlesIterator i; HandlesWrapper h1; h1._name = name; i = m.face_attr.find(h1); assert(i!=m.face_attr.end()); - delete ((SimpleTempData*)(*i)._handle); + delete ((SimpleTempDataBase*)(*i)._handle); m.face_attr.erase(i); } @@ -977,14 +974,13 @@ public: assert(0); } - template static void DeletePerMeshAttribute( MeshType & m, std::string name){ HandlesIterator i; HandlesWrapper h1; h1._name = name; i = m.mesh_attr.find(h1); assert(i!=m.mesh_attr.end()); - delete ((Attribute *)(*i)._handle); + delete ((AttributeBase *)(*i)._handle); m.mesh_attr.erase(i); } }; // end class