From d876bcc5ecff42be288de45e0b2f4b53037c5e1d Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Mon, 5 Feb 2007 12:38:52 +0100 Subject: [PATCH] constify --- src/core/reference-list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/reference-list.h b/src/core/reference-list.h index 1f21a39a6..6174d4a23 100644 --- a/src/core/reference-list.h +++ b/src/core/reference-list.h @@ -79,14 +79,14 @@ public: InsertSelfInOther (o); return *this; } - OBJ_PTR operator-> () { + OBJ_PTR operator-> () const { return m_objPtr; } void Set (OBJ_PTR objPtr) { RemoveFromList (); m_objPtr = objPtr; } - OBJ_PTR Get (void) { + OBJ_PTR Get (void) const { // explicit conversion to raw pointer type. return m_objPtr; }