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 f554064..02f361f 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 86d17c4..cf271cf 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 28fe69e..b821205 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 aa8395e..f1da6e0 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 329930a..032d891 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