From 007d6b94f5a011ae4e1ced34b456b025ab4d88f2 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 5 Dec 2008 22:42:55 +0000 Subject: [PATCH] added two const to the next and prev index returning functions --- vcg/simplex/faceplus/base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/faceplus/base.h b/vcg/simplex/faceplus/base.h index 101db319..dccad32d 100644 --- a/vcg/simplex/faceplus/base.h +++ b/vcg/simplex/faceplus/base.h @@ -109,8 +109,8 @@ class FaceTypeHolder{ // prot const int VN() const { return 3;} - inline int Prev(const int & i){ return (i+(3-1))%3;} - inline int Next(const int & i){ return (i+1)%3;} + inline const int Prev(const int & i) const { return (i+(3-1))%3;} + inline const int Next(const int & i) const { return (i+1)%3;} inline void Alloc(const int & ){} inline void Dealloc(){} };