Add some more noexcept tag (devel-api, internal) 27/289927/3
authorEunki Hong <eunkiki.hong@samsung.com>
Wed, 15 Mar 2023 16:50:30 +0000 (01:50 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 23 Mar 2023 04:43:18 +0000 (13:43 +0900)
Change-Id: I01b0fc6080da4aa91dc3dd50fc2650ab7f18d45d
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali/devel-api/common/stage.cpp
dali/devel-api/common/stage.h
dali/internal/common/owner-pointer.h
dali/internal/event/events/actor-observer.cpp
dali/internal/event/events/actor-observer.h

index f554064c503cdd23118b2b7f91962b8304223ca6..02f361fa05f67db4e821ae3910748efe07920833 100644 (file)
@@ -38,9 +38,9 @@ Stage::Stage(const Stage& handle) = default;
 
 Stage& Stage::operator=(const Stage& rhs) = default;
 
-Stage::Stage(Stage&& handle) = default;
+Stage::Stage(Stage&& handle) noexcept = default;
 
-Stage& Stage::operator=(Stage&& rhs) = default;
+Stage& Stage::operator=(Stage&& rhs) noexcept = default;
 
 Stage::Stage(Internal::Stage* internal)
 : BaseHandle(internal)
index 86d17c447f249d9bce0099b9f7bbfb73ffa9a848..cf271cfbaab3e4580f6baba09f719b02200c9fdf 100644 (file)
@@ -140,7 +140,7 @@ public:
    *
    * @param[in] handle A reference to the moved handle
    */
-  Stage(Stage&& handle);
+  Stage(Stage&& handle) noexcept;
 
   /**
    * @brief This move assignment operator is required for (smart) pointer semantics.
@@ -148,7 +148,7 @@ public:
    * @param[in] rhs A reference to the moved handle
    * @return A reference to this
    */
-  Stage& operator=(Stage&& rhs);
+  Stage& operator=(Stage&& rhs) noexcept;
 
   // Containment
 
index 28fe69e1107a017393636d5098da6aeb39ab994f..b8212052399483f10034cdacc1ad700969daeea9 100644 (file)
@@ -64,7 +64,7 @@ public:
    * Move constructor. Passes the ownership of a pointer to another.
    * @param[in] other The pointer that gives away the ownership.
    */
-  OwnerPointer(OwnerPointer&& other)
+  OwnerPointer(OwnerPointer&& other) noexcept
   : mObject(nullptr)
   {
     Swap(other);
@@ -91,7 +91,7 @@ public:
    * Move assignment operator. Passes the ownership of a pointer to another.
    * @param[in] other The pointer that gives away the ownership.
    */
-  OwnerPointer& operator=(OwnerPointer&& other)
+  OwnerPointer& operator=(OwnerPointer&& other) noexcept
   {
     // Reuse operator=
     return operator=(other);
index aa8395eaf04d4366d014386ba63f524b430d3717..f1da6e081a15a1de228e873f56a4dda57399ba7d 100644 (file)
@@ -52,13 +52,13 @@ ActorObserver::~ActorObserver()
   delete mRemoveCallback;
 }
 
-ActorObserver::ActorObserver(ActorObserver&& other)
+ActorObserver::ActorObserver(ActorObserver&& other) noexcept
 : ActorObserver(nullptr)
 {
   operator=(std::move(other));
 }
 
-ActorObserver& ActorObserver::operator=(ActorObserver&& other)
+ActorObserver& ActorObserver::operator=(ActorObserver&& other) noexcept
 {
   if(this != &other)
   {
index 329930a38d21dc501aac3a95ac25ce0e9bb97db5..032d8915d460dbd76d842e92c266de6224e6def2 100644 (file)
@@ -71,7 +71,7 @@ public:
    * @note The other's actor is appropriately disconnected.
    * @note Ownership of callback is passed onto this class.
    */
-  ActorObserver(ActorObserver&& other);
+  ActorObserver(ActorObserver&& other) noexcept;
 
   /**
    * Move assignment operator.
@@ -81,7 +81,7 @@ public:
    * @note The other's actor is appropriately disconnected.
    * @note Ownership of callback is passed onto this class.
    */
-  ActorObserver& operator=(ActorObserver&& other);
+  ActorObserver& operator=(ActorObserver&& other) noexcept;
 
   // Not copyable