rlottie: mark all user defined destructor's as noexcept
authorsub.mohanty@samsung.com <smohantty@gmail.com>
Sun, 9 Aug 2020 03:48:25 +0000 (12:48 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 17 Aug 2020 22:22:02 +0000 (07:22 +0900)
src/lottie/lottieitem.h
src/lottie/lottiemodel.h
src/vector/vdrawable.h

index dbbe4b5..5c7ccc2 100644 (file)
@@ -118,7 +118,7 @@ public:
 public:
     std::unique_ptr<LOTNode> mCNode{nullptr};
 
-    ~Drawable()
+    ~Drawable() noexcept
     {
         if (mCNode && mCNode->mGradient.stopPtr)
             free(mCNode->mGradient.stopPtr);
index b1c6184..4a7db32 100644 (file)
@@ -308,7 +308,7 @@ public:
     Property &operator=(const Property &) = delete;
     Property &operator=(Property &&) = delete;
 
-    ~Property() { destroy(); }
+    ~Property() noexcept { destroy(); }
 
     bool isStatic() const { return mStatic; }
 
@@ -376,7 +376,7 @@ private:
         details(details &&) = delete;
         details &operator=(details &&) = delete;
         details &operator=(const details &) = delete;
-        ~details(){};
+        ~details() noexcept {};
     } impl;
     bool mStatic{true};
 };
@@ -439,7 +439,7 @@ public:
         mData._shortString = true;
         mData._hidden = false;
     }
-    ~Object()
+    ~Object() noexcept
     {
         if (!shortString() && mPtr) free(mPtr);
     }
@@ -609,7 +609,7 @@ public:
     Transform(Transform &&) = delete;
     Transform &operator=(Transform &) = delete;
     Transform &operator=(Transform &&) = delete;
-    ~Transform() { destroy(); }
+    ~Transform() noexcept { destroy(); }
 
 private:
     void destroy()
@@ -634,7 +634,7 @@ private:
         details(details &&) = delete;
         details &operator=(details &&) = delete;
         details &operator=(const details &) = delete;
-        ~details(){};
+        ~details() noexcept {};
     } impl;
 };
 
index 607ff4b..357a69f 100644 (file)
@@ -47,7 +47,7 @@ public:
 
     explicit VDrawable(VDrawable::Type type = Type::Fill);
     void setType(VDrawable::Type type);
-    ~VDrawable();
+    ~VDrawable() noexcept;
 
     typedef vFlag<DirtyState> DirtyFlag;
     void setPath(const VPath &path);