void
NfcPushUiForm::PlayBoundsAnimation(const Tizen::Base::String& animationName, int repeatCount, int duration, bool autoReverse)
{
+ std::unique_ptr<EaseInOutTimingFunction> pTimingFunction;
std::unique_ptr<VisualElementPropertyAnimation> pAnimation(new (std::nothrow) VisualElementPropertyAnimation());
SysTryReturnVoidResult(NID_NET_NFC, pAnimation != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
- Tizen::Ui::Animations::EaseInOutTimingFunction* pTimingFunction = new EaseInOutTimingFunction();
-
// bounds
pAnimation->SetPropertyName(L"bounds");
pAnimation->SetStartValue(Variant(__startRect));
pAnimation->SetVisualElementAnimationStatusEventListener(this);
if (animationName == L"grow" || animationName == L"shrink")
{
- pAnimation->SetTimingFunction(pTimingFunction);
+ pTimingFunction.reset(new (std::nothrow) EaseInOutTimingFunction());
+ pAnimation->SetTimingFunction(pTimingFunction.release());
}
__pVisualElementBounds->AddAnimation(animationName, *pAnimation);