(Waves Example) Ensure all members are initialised 23/247623/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 12 Nov 2020 23:51:25 +0000 (23:51 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 12 Nov 2020 23:51:25 +0000 (23:51 +0000)
Change-Id: Iffc1289e6ea44c0ee87e0adc3fed8683cb3ef263

examples/waves/waves-example.cpp

index 993a732..9689772 100644 (file)
@@ -280,16 +280,16 @@ private:
   Actor mWaves;
   Shader mWaveShader;
 
-  Property::Index mUInvLightDir;
-  Property::Index mULightColorSqr;
-  Property::Index mUAmbientColor;
-  Property::Index mUWaveRate;
-  Property::Index mUWaveAmplitude;
-  Property::Index mUScrollScale;
-  Property::Index mUNormalMapWeight;
-  Property::Index mUSpecularity;
-  Property::Index mUParallaxAmount;
-  Property::Index mUTime;
+  Property::Index mUInvLightDir{Property::INVALID_INDEX};
+  Property::Index mULightColorSqr{Property::INVALID_INDEX};
+  Property::Index mUAmbientColor{Property::INVALID_INDEX};
+  Property::Index mUWaveRate{Property::INVALID_INDEX};
+  Property::Index mUWaveAmplitude{Property::INVALID_INDEX};
+  Property::Index mUScrollScale{Property::INVALID_INDEX};
+  Property::Index mUNormalMapWeight{Property::INVALID_INDEX};
+  Property::Index mUSpecularity{Property::INVALID_INDEX};
+  Property::Index mUParallaxAmount{Property::INVALID_INDEX};
+  Property::Index mUTime{Property::INVALID_INDEX};
 
   TapGestureDetector mDoubleTapGesture;