Remove variable shadowing
[platform/core/uifw/dali-demo.git] / examples / motion-stretch / motion-stretch-example.cpp
index dd55e34..0ecc426 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -254,11 +254,11 @@ public:
     destPos.y                 = localPoint.y - originOffsetY;
     destPos.z                 = 0.0f;
 
-    float animDuration         = 0.5f;
-    mActorTapMovementAnimation = Animation::New(animDuration);
+    float tapMovementAnimDuration = 0.5f;
+    mActorTapMovementAnimation    = Animation::New(tapMovementAnimDuration);
     if(mMotionStretchImageView)
     {
-      mActorTapMovementAnimation.AnimateTo(Property(mMotionStretchImageView, Actor::Property::POSITION), destPos, AlphaFunction::EASE_IN_OUT_SINE, TimePeriod(animDuration));
+      mActorTapMovementAnimation.AnimateTo(Property(mMotionStretchImageView, Actor::Property::POSITION), destPos, AlphaFunction::EASE_IN_OUT_SINE, TimePeriod(tapMovementAnimDuration));
     }
     mActorTapMovementAnimation.SetEndAction(Animation::BAKE);
     mActorTapMovementAnimation.Play();