From f30376e18de0e7130e08ebe744f91c8634435080 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Wed, 8 Oct 2008 14:43:15 +0000 Subject: [PATCH] Added const qualifier to method cC() in Color class --- vcg/simplex/faceplus/component.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/simplex/faceplus/component.h b/vcg/simplex/faceplus/component.h index e4e38f7f..6470a927 100644 --- a/vcg/simplex/faceplus/component.h +++ b/vcg/simplex/faceplus/component.h @@ -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 void ImportLocal(const LeftF & leftF){ C() = leftF.cC();T::ImportLocal(leftF);} inline void Alloc(const int & ns){T::Alloc(ns);}