From 22a4972fe06a329367dfb327e15d8398c2269cf4 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 27 Jan 2005 00:40:06 +0000 Subject: [PATCH] fix PTA_Vertex::set_element() --- panda/src/express/pointerToArray.I | 4 ++-- panda/src/express/pointerToArray.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/express/pointerToArray.I b/panda/src/express/pointerToArray.I index 2eabdb93ef..b95630da9b 100644 --- a/panda/src/express/pointerToArray.I +++ b/panda/src/express/pointerToArray.I @@ -322,7 +322,7 @@ operator [](int n) const { // a confusion with the pointer typecast operator. //////////////////////////////////////////////////////////////////// template -INLINE TYPENAME PointerToArray::const_reference PointerToArray:: +INLINE const Element &PointerToArray:: get_element(size_type n) const { return (*this)[n]; } @@ -338,7 +338,7 @@ get_element(size_type n) const { //////////////////////////////////////////////////////////////////// template INLINE void PointerToArray:: -set_element(size_type n, const_reference value) { +set_element(size_type n, const Element &value) { nassertv(n < ((To *)_void_ptr)->size()); (*this)[n] = value; } diff --git a/panda/src/express/pointerToArray.h b/panda/src/express/pointerToArray.h index 48ac77b88d..2d98bf9a0e 100644 --- a/panda/src/express/pointerToArray.h +++ b/panda/src/express/pointerToArray.h @@ -153,8 +153,8 @@ PUBLISHED: INLINE reference operator [](size_type n) const; INLINE reference operator [](int n) const; #endif - INLINE const_reference get_element(size_type n) const; - INLINE void set_element(size_type n, const_reference value); + INLINE const Element &get_element(size_type n) const; + INLINE void set_element(size_type n, const Element &value); INLINE void push_back(const Element &x); INLINE void pop_back();