Initialise member variables of ImageFrame struct in rolling image caches 13/165613/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 2 Jan 2018 15:42:15 +0000 (15:42 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 2 Jan 2018 15:43:28 +0000 (15:43 +0000)
This was required as in the SVACE compiler, a compiler warning of these values possibly being used without initialising.

Change-Id: I3714be8534679a7769970939d8cea7c4919d0253

dali-toolkit/internal/visuals/animated-image/rolling-gif-image-cache.h
dali-toolkit/internal/visuals/animated-image/rolling-image-cache.h

index 778eeda..d912ab3 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_INTERNAL_ROLLING_GIF_IMAGE_CACHE_H
 
 /*
 #define DALI_TOOLKIT_INTERNAL_ROLLING_GIF_IMAGE_CACHE_H
 
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -105,7 +105,7 @@ private:
    */
   struct ImageFrame
   {
    */
   struct ImageFrame
   {
-    unsigned int mFrameNumber;
+    unsigned int mFrameNumber = 0u;
   };
 
   GifLoading&               mGifLoading;
   };
 
   GifLoading&               mGifLoading;
index 06240c6..b1fcce3 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_INTERNAL_ROLLING_IMAGE_CACHE_H
 
 /*
 #define DALI_TOOLKIT_INTERNAL_ROLLING_IMAGE_CACHE_H
 
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -119,8 +119,8 @@ private:
    */
   struct ImageFrame
   {
    */
   struct ImageFrame
   {
-    unsigned int mUrlIndex;
-    bool mReady;
+    unsigned int mUrlIndex = 0u;
+    bool mReady = false;
   };
 
   std::vector<UrlStore>& mImageUrls;
   };
 
   std::vector<UrlStore>& mImageUrls;