Fix SVACE issue 54/172454/2
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 14 Mar 2018 04:42:31 +0000 (13:42 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 14 Mar 2018 05:01:38 +0000 (14:01 +0900)
- Changed KeyValuePair variable name because name 'pair' is already defined
  at 466 line. (In the same scope)

Change-Id: Id20a0b7793f6f87e985b34234c06a3c9b764f63c
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali/devel-api/scripting/scripting.cpp

index 4a91adf..30bc996 100644 (file)
@@ -546,20 +546,20 @@ void NewAnimation( const Property::Map& map, Dali::AnimationData& outputAnimatio
       Property::Map timeMap = value.Get< Property::Map >();
       for( unsigned int i = 0; i < timeMap.Count(); ++i )
       {
-        const KeyValuePair pair( timeMap.GetKeyValue( i ) );
-        if( pair.first.type == Property::Key::INDEX )
+        const KeyValuePair timePair( timeMap.GetKeyValue( i ) );
+        if( timePair.first.type == Property::Key::INDEX )
         {
           continue;
         }
-        const std::string& key( pair.first.stringKey );
+        const std::string& key( timePair.first.stringKey );
 
         if( key == "delay" )
         {
-          element->timePeriodDelay = pair.second.Get< float >();
+          element->timePeriodDelay = timePair.second.Get< float >();
         }
         else if( key == "duration" )
         {
-          element->timePeriodDuration = pair.second.Get< float >();
+          element->timePeriodDuration = timePair.second.Get< float >();
         }
       }
     }