Merge "remove 58k unnecessary asserts from dali-demo startup" into tizen
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Wed, 17 Dec 2014 17:04:32 +0000 (09:04 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 17 Dec 2014 17:04:32 +0000 (09:04 -0800)
dali/public-api/object/base-handle.cpp
dali/public-api/object/base-handle.h

index 45473a3..9347aa8 100644 (file)
@@ -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<BaseObject&>(*mObjectHandle);
 }
 
 const BaseObject& BaseHandle::GetBaseObject() const
 {
-  DALI_ASSERT_ALWAYS(mObjectHandle.Get() && "BaseHandle is empty" );
-
   return static_cast<const BaseObject&>(*mObjectHandle);
 }
 
index 77bd59e..e726bcd 100644 (file)
@@ -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;