added two const to the next and prev index returning functions

This commit is contained in:
Paolo Cignoni 2008-12-05 22:42:55 +00:00
parent cca3b3ad5f
commit 007d6b94f5
1 changed files with 2 additions and 2 deletions

View File

@ -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(){}
};