From: Kimmo Hoikka Date: Tue, 16 Dec 2014 19:33:56 +0000 (+0000) Subject: remove 58k unnecessary asserts from dali-demo startup X-Git-Tag: dali_1.0.22~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F32216%2F3;p=platform%2Fcore%2Fuifw%2Fdali-core.git remove 58k unnecessary asserts from dali-demo startup Change-Id: If9713cdc76dcc60cb2d63104e98b61afb8c0e05e --- diff --git a/dali/public-api/object/base-handle.cpp b/dali/public-api/object/base-handle.cpp index 45473a3..9347aa8 100644 --- a/dali/public-api/object/base-handle.cpp +++ b/dali/public-api/object/base-handle.cpp @@ -74,15 +74,11 @@ bool BaseHandle::GetTypeInfo(Dali::TypeInfo& typeInfo) const BaseObject& BaseHandle::GetBaseObject() { - DALI_ASSERT_ALWAYS( mObjectHandle.Get() && "BaseHandle is empty" ); - return static_cast(*mObjectHandle); } const BaseObject& BaseHandle::GetBaseObject() const { - DALI_ASSERT_ALWAYS(mObjectHandle.Get() && "BaseHandle is empty" ); - return static_cast(*mObjectHandle); } diff --git a/dali/public-api/object/base-handle.h b/dali/public-api/object/base-handle.h index 77bd59e..e726bcd 100644 --- a/dali/public-api/object/base-handle.h +++ b/dali/public-api/object/base-handle.h @@ -149,7 +149,7 @@ public: * @brief Retrieve the internal Dali resource. * * This is useful for checking the reference count of the internal resource. - * This method will assert, if the Dali::BaseHandle has not been initialized. + * This method will not check the validity of the handle so the caller is expected to check it by using if (handle) * @return The BaseObject which is referenced by the BaseHandle. */ BaseObject& GetBaseObject(); @@ -158,7 +158,7 @@ public: * @brief Retrieve the internal Dali resource. * * This is useful for checking the reference count of the internal resource. - * This method will assert, if the Dali::BaseHandle has not been initialized. + * This method will not check the validity of the handle so the caller is expected to check it by using if (handle) * @return The BaseObject which is referenced by the BaseHandle. */ const BaseObject& GetBaseObject() const;