X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fanimation%2Fkey-frames.cpp;h=a700771a1b94873ec35397bb634c2d11230384f0;hb=adae31cf70bdeed19789edc694d4baaf2fc67f21;hp=a4ef9bb00ab0bdc6ee310d94d0c6ebaa90749efd;hpb=995a0901d56c687ea085bf86c103cfbc4c19ad23;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/animation/key-frames.cpp b/dali/public-api/animation/key-frames.cpp index a4ef9bb..a700771 100644 --- a/dali/public-api/animation/key-frames.cpp +++ b/dali/public-api/animation/key-frames.cpp @@ -19,40 +19,35 @@ #include // INTERNAL INCLUDES +#include #include #include #include -#include namespace Dali { - KeyFrames KeyFrames::New() { Internal::KeyFrames* internal = Internal::KeyFrames::New(); return KeyFrames(internal); } -KeyFrames KeyFrames::DownCast( BaseHandle handle ) +KeyFrames KeyFrames::DownCast(BaseHandle handle) { - return KeyFrames( dynamic_cast(handle.GetObjectPtr()) ); + return KeyFrames(dynamic_cast(handle.GetObjectPtr())); } -KeyFrames::KeyFrames() -{ -} +KeyFrames::KeyFrames() = default; -KeyFrames::~KeyFrames() -{ -} +KeyFrames::~KeyFrames() = default; KeyFrames::KeyFrames(const KeyFrames& handle) = default; KeyFrames& KeyFrames::operator=(const KeyFrames& rhs) = default; -KeyFrames::KeyFrames( KeyFrames&& rhs ) = default; +KeyFrames::KeyFrames(KeyFrames&& rhs) noexcept = default; -KeyFrames& KeyFrames::operator=( KeyFrames&& rhs ) = default; +KeyFrames& KeyFrames::operator=(KeyFrames&& rhs) noexcept = default; Property::Type KeyFrames::GetType() const { @@ -61,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) @@ -70,10 +65,8 @@ void KeyFrames::Add(float time, Property::Value value, AlphaFunction alpha) } KeyFrames::KeyFrames(Internal::KeyFrames* internal) - : BaseHandle(internal) +: BaseHandle(internal) { } - - -} // Dali +} // namespace Dali