From 2eec2e0d556ea0eea9cc016b1e7645592a816bb3 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 10 May 2011 21:56:15 +0000 Subject: [PATCH] missing const in edge adj access --- vcg/simplex/edge/component.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcg/simplex/edge/component.h b/vcg/simplex/edge/component.h index 8cd7bfe9..6ea10dae 100644 --- a/vcg/simplex/edge/component.h +++ b/vcg/simplex/edge/component.h @@ -264,7 +264,7 @@ public: typename T::EdgePointer &EEp(const int & ) { static typename T::EdgePointer ep=0; assert(0); return ep; } const typename T::EdgePointer cEEp(const int & ) const { static typename T::EdgePointer ep=0; assert(0); return ep; } int &EEi(const int &){static int z=0; assert(0); return z;}; - const int &cEEi(const int &) const {static int z=0; assert(0); return z;}; + int cEEi(const int &) const {static int z=0; assert(0); return z;}; template < class LeftV> void ImportData(const LeftV & left ) { T::ImportData( left); } static bool HasEEAdjacency() { return false; } @@ -276,9 +276,9 @@ template class EEAdj: public T { public: EEAdj(){_ep[0]=0;_ep[1]=0;_zp[0]=-1;_zp[1]=-1;} typename T::EdgePointer &EEp(const int & i) {return _ep[i]; } - typename T::EdgePointer cEEp(const int & i) {return _ep[i]; } + typename T::EdgePointer cEEp(const int & i) const {return _ep[i]; } int &EEi(const int & i){ return _zp[i];}; - const int &cEEi(const int &i ){return _zp[i];}; + int cEEi(const int &i )const {return _zp[i];}; template < class LeftV> void ImportData(const LeftV & left ) { T::ImportData( left); }