Added const qualifier to method cC() in Color class

This commit is contained in:
Paolo Cignoni 2008-10-08 14:43:15 +00:00
parent 7722469c4f
commit f30376e18d
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ public:
typedef A ColorType;
Color():_color(vcg::Color4b::White) {}
ColorType &C() { return _color; }
const ColorType &cC() { return _color; }
const ColorType &cC() const { return _color; }
template <class LeftF>
void ImportLocal(const LeftF & leftF){ C() = leftF.cC();T::ImportLocal(leftF);}
inline void Alloc(const int & ns){T::Alloc(ns);}