Fix MSVC warning. 32/229332/1
authorVictor Cebollada <v.cebollada@samsung.com>
Thu, 6 Feb 2020 11:45:33 +0000 (11:45 +0000)
committerSeungho, Baek <sbsh.baek@samsung.com>
Tue, 31 Mar 2020 07:37:09 +0000 (16:37 +0900)
* warning C4804: '+=': unsafe use of type 'bool' in operation

Change-Id: I7e190bc9655377d3c45364ac75e60f9650b3ab47
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali/internal/update/common/animatable-property.h

index 348d849..2a82031 100644 (file)
@@ -205,7 +205,7 @@ public:
     // false + false does not change value, true + false does not either
     if( delta && !mValue[bufferIndex] )
     {
-      mValue[bufferIndex] += delta;
+      mValue[bufferIndex] = delta;
 
       OnSet();
     }
@@ -274,7 +274,7 @@ public:
    */
   void BakeRelative(BufferIndex bufferIndex, bool delta)
   {
-    mValue[bufferIndex] += delta;
+    mValue[bufferIndex] = mValue[bufferIndex] || delta;
     mBaseValue = mValue[bufferIndex];
 
     OnBake();