Ensure BaseHandle class move noexcept (core public-api)
[platform/core/uifw/dali-core.git] / dali / public-api / object / weak-handle.h
index 91a0795..b64e82c 100644 (file)
@@ -84,7 +84,7 @@ public:
    * @SINCE_1_9.22
    * @param[in] rhs A reference to the moved handle
    */
-  WeakHandleBase(WeakHandleBase&& rhs);
+  WeakHandleBase(WeakHandleBase&& rhs) noexcept;
 
   /**
    * @brief Move assignment operator.
@@ -93,7 +93,7 @@ public:
    * @param[in] rhs A reference to the moved handle
    * @return A reference to this handle
    */
-  WeakHandleBase& operator=(WeakHandleBase&& rhs);
+  WeakHandleBase& operator=(WeakHandleBase&& rhs) noexcept;
 
   /**
    * @brief Equality operator overload.
@@ -162,9 +162,7 @@ public:
   /**
    * @copydoc Dali::WeakHandleBase::~WeakHandleBase()
    */
-  ~WeakHandle()
-  {
-  }
+  ~WeakHandle() = default;
 
   /**
    * @copydoc Dali::WeakHandleBase::WeakHandleBase(const WeakHandleBase&)