From: Kimmo Hoikka Date: Tue, 4 Nov 2014 13:31:18 +0000 (+0000) Subject: Fixing the comments and coding style in intrusive pointer X-Git-Tag: dali_1.0.16~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=240e3d62b2b0af78583ac13980e7471763464816;p=platform%2Fcore%2Fuifw%2Fdali-core.git Fixing the comments and coding style in intrusive pointer [Problem] [Cause] [Solution] Change-Id: Ifc3255a3122359a33871c828e12acf127fa878ba --- diff --git a/dali/public-api/common/intrusive-ptr.h b/dali/public-api/common/intrusive-ptr.h index 654c125..5eb1883 100644 --- a/dali/public-api/common/intrusive-ptr.h +++ b/dali/public-api/common/intrusive-ptr.h @@ -25,7 +25,7 @@ namespace Dali { /** - * @brief Templated class to emulate a sub-set of functions served by deprecating boost::intrusive_ptr. + * @brief Templated intrusive pointer class * * Uses the Dali:Refobject type supply actual reference counting * The object is responsible for destroying itself @@ -211,7 +211,8 @@ private: * @param rhs intrusive pointer to compare against * @return true if the pointers point at the same object */ -template inline bool operator==( IntrusivePtrconst& lhs, IntrusivePtrconst& rhs ) +template +inline bool operator==( IntrusivePtrconst& lhs, IntrusivePtrconst& rhs ) { return lhs.Get() == rhs.Get(); } @@ -223,7 +224,8 @@ template inline bool operator==( IntrusivePtrconst& l * @param rhs intrusive pointer to compare against * @return true if the pointers point at different objects */ -template inline bool operator!=( IntrusivePtrconst& lhs, IntrusivePtrconst &rhs) +template +inline bool operator!=( IntrusivePtrconst& lhs, IntrusivePtrconst &rhs) { return lhs.Get() != rhs.Get(); } @@ -235,7 +237,8 @@ template inline bool operator!=( IntrusivePtrconst& l * @param rhs object to compare against * @return true if the intrusive pointer points at the specified object */ -template inline bool operator==( IntrusivePtrconst& lhs, U* rhs ) +template +inline bool operator==( IntrusivePtrconst& lhs, U* rhs ) { return lhs.Get() == rhs; } @@ -247,7 +250,8 @@ template inline bool operator==( IntrusivePtrconst& l * @param rhs intrusive pointer to compare against * @return true if the intrusive pointer doesn't point at the specified object */ -template inline bool operator!=( IntrusivePtrconst& lhs, U* rhs ) +template +inline bool operator!=( IntrusivePtrconst& lhs, U* rhs ) { return lhs.Get() != rhs; } @@ -259,7 +263,8 @@ template inline bool operator!=( IntrusivePtrconst& l * @param rhs intrusive pointer to compare against * @return true if the intrusive pointer points at the specified object */ -template inline bool operator==( T* lhs, IntrusivePtrconst& rhs ) +template +inline bool operator==( T* lhs, IntrusivePtrconst& rhs ) { return lhs == rhs.Get(); } @@ -271,7 +276,8 @@ template inline bool operator==( T* lhs, IntrusivePtr * @param rhs intrusive pointer to compare against * @return true if the intrusive pointer doesn't point at the specified object */ -template inline bool operator!=( T* lhs, IntrusivePtrconst& rhs ) +template +inline bool operator!=( T* lhs, IntrusivePtrconst& rhs ) { return lhs != rhs.Get(); } @@ -282,7 +288,8 @@ template inline bool operator!=( T* lhs, IntrusivePtr * @param rhs intrusive pointer wrapping object * @return pointer to object */ -templateinline T* GetPointer(IntrusivePtr const& rhs) +template +inline T* GetPointer(IntrusivePtr const& rhs) { return rhs.Get(); } @@ -293,7 +300,8 @@ templateinline T* GetPointer(IntrusivePtr const& rhs) * @param rhs intrusive pointer wrapping object * @return pointer to object */ -templateinline T* get_pointer(IntrusivePtr const& rhs) +template +inline T* get_pointer(IntrusivePtr const& rhs) { return rhs.Get(); }