Merge "Clean up the code to build successfully on macOS" into devel/master
[platform/core/uifw/dali-core.git] / dali / public-api / animation / key-frames.cpp
index d2394dd..bff6040 100644 (file)
@@ -37,13 +37,9 @@ KeyFrames KeyFrames::DownCast(BaseHandle handle)
   return KeyFrames(dynamic_cast<Dali::Internal::KeyFrames*>(handle.GetObjectPtr()));
 }
 
-KeyFrames::KeyFrames()
-{
-}
+KeyFrames::KeyFrames() = default;
 
-KeyFrames::~KeyFrames()
-{
-}
+KeyFrames::~KeyFrames() = default;
 
 KeyFrames::KeyFrames(const KeyFrames& handle) = default;
 
@@ -60,7 +56,7 @@ Property::Type KeyFrames::GetType() const
 
 void KeyFrames::Add(float time, Property::Value value)
 {
-  Add(time, value, AlphaFunction::DEFAULT);
+  Add(time, std::move(value), AlphaFunction::DEFAULT);
 }
 
 void KeyFrames::Add(float time, Property::Value value, AlphaFunction alpha)