From a1f48b91eae7d61be15d1235a653402dea291d13 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 29 Jul 2008 09:23:54 +0000 Subject: [PATCH] Formatting. svn-id: r33401 --- common/ptr.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/ptr.h b/common/ptr.h index 9879db28a6e..c6fcaa4f75f 100644 --- a/common/ptr.h +++ b/common/ptr.h @@ -121,7 +121,7 @@ public: ~SharedPtr() { decRef(); } - SharedPtr &operator =(const SharedPtr &r) { + SharedPtr &operator=(const SharedPtr &r) { if (r._refCount) ++(*r._refCount); decRef(); @@ -134,7 +134,7 @@ public: } template - SharedPtr &operator =(const SharedPtr &r) { + SharedPtr &operator=(const SharedPtr &r) { if (r._refCount) ++(*r._refCount); decRef(); @@ -146,8 +146,8 @@ public: return *this; } - ValueType &operator *() const { assert(_pointer); return *_pointer; } - Pointer operator ->() const { assert(_pointer); return _pointer; } + ValueType &operator*() const { assert(_pointer); return *_pointer; } + Pointer operator->() const { assert(_pointer); return _pointer; } /** * Returns the plain pointer value. Be sure you know what you @@ -209,12 +209,12 @@ private: } // end of namespace Common template -bool operator ==(const Common::SharedPtr &l, const Common::SharedPtr &r) { +bool operator==(const Common::SharedPtr &l, const Common::SharedPtr &r) { return l.get() == r.get(); } template -bool operator !=(const Common::SharedPtr &l, const Common::SharedPtr &r) { +bool operator!=(const Common::SharedPtr &l, const Common::SharedPtr &r) { return l.get() != r.get(); }