From a2127ce0629fcf8e1c33e0eaf30d6f4bc482d543 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sun, 18 Feb 2007 07:41:32 +0000 Subject: [PATCH] Corrected small syntax errors detected by gcc --- vcg/simplex/vertexplus/component.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/vcg/simplex/vertexplus/component.h b/vcg/simplex/vertexplus/component.h index 7552ec26..82664905 100644 --- a/vcg/simplex/vertexplus/component.h +++ b/vcg/simplex/vertexplus/component.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.20 2007/02/12 19:00:56 ganovelli +added Name(std:vector& n) that fills n with the names of the attribute of the vertex type + Revision 1.19 2006/12/11 23:40:57 ganovelli Has*Opt migrated to Has*Occ @@ -126,7 +129,7 @@ public: CoordType &UberP() { return _coord; } static bool HasCoord() { return true; } - static void Name(std::vector & name){name.push_back(std::string("Coord")));T::Name(name);} + static void Name(std::vector & name){name.push_back(std::string("Coord"));T::Name(name);} private: CoordType _coord; @@ -213,7 +216,7 @@ public: typedef A TextureType; TextureType &T() { return _t; } static bool HasTexture() { return true; } - static void Name(std::vector & name){name.push_back(std::string("Texture"));T::Name(name);} + static void Name(std::vector & name){name.push_back(std::string("Texture"));TT::Name(name);} private: TextureType _t; @@ -277,7 +280,7 @@ private: ColorType _color; }; -template class Color4b: public vert::Color { +template class Color4b: public vert::Color { static void Name(std::vector & name){name.push_back(std::string("Color4b"));TT::Name(name);} }; @@ -291,7 +294,7 @@ public: static void Name(std::vector & name){T::Name(name);} }; -template class Quality: public T { +template class Quality: public TT { public: typedef A QualityType; QualityType &Q() { return _quality; } @@ -302,13 +305,13 @@ private: QualityType _quality; }; -template class Qualitys: public Quality { +template class Qualitys: public Quality { static void Name(std::vector & name){name.push_back(std::string("Qualitys"));TT::Name(name);} }; -template class Qualityf: public Quality { +template class Qualityf: public Quality { static void Name(std::vector & name){name.push_back(std::string("Qualityf"));TT::Name(name);} }; -template class Qualityd: public Quality { +template class Qualityd: public Quality { static void Name(std::vector & name){name.push_back(std::string("Qualityd"));TT::Name(name);} };