From 22545849a4286e45196bbefd549b63fb090a1ec6 Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Thu, 16 Apr 2009 13:28:51 +0200 Subject: [PATCH] bug 534: non-const Ptr::operator * () returns const reference --- src/core/ptr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ptr.h b/src/core/ptr.h index 4861ceb4b..c61db5506 100644 --- a/src/core/ptr.h +++ b/src/core/ptr.h @@ -106,7 +106,7 @@ public: T *operator -> () const; T *operator -> (); const T &operator * () const; - const T &operator * (); + T &operator * (); // allow if (!sp) bool operator! (); // allow if (sp) @@ -472,7 +472,7 @@ Ptr::operator * () const } template -const T & +T & Ptr::operator * () { return *m_ptr;