[Tizen] (WebP Loader) Ensure member variables are initialised (SVACE issue) 61/240961/1 accepted/tizen/unified/20200824.025952 submit/tizen/20200817.233902 submit/tizen/20200819.063834
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 22 Jul 2020 15:25:42 +0000 (16:25 +0100)
committerseungho <seungho@seungho.tn.corp.samsungelectronics.net>
Thu, 13 Aug 2020 07:25:49 +0000 (16:25 +0900)
Change-Id: Id1a5d8456496b82d5bdf80ebebf54919cdab9634

dali/internal/imaging/common/webp-loading.cpp

index d3031fa..93a88b5 100644 (file)
@@ -65,8 +65,7 @@ struct WebPLoading::Impl
 {
 public:
   Impl( const std::string& url, bool isLocalResource )
-  : mUrl( url ),
-    mLoadingFrame( 0 )
+  : mUrl( url )
   {
 #ifdef DALI_WEBP_ENABLED
     if( ReadWebPInformation( isLocalResource ) )
@@ -180,12 +179,12 @@ public:
 
   std::string mUrl;
   std::vector<uint32_t> mTimeStamp;
-  uint32_t mLoadingFrame;
+  uint32_t mLoadingFrame{0};
 
 #ifdef DALI_WEBP_ENABLED
-  WebPData mWebPData;
-  WebPAnimDecoder* mWebPAnimDecoder;
-  WebPAnimInfo mWebPAnimInfo;
+  WebPData mWebPData{0};
+  WebPAnimDecoder* mWebPAnimDecoder{nullptr};
+  WebPAnimInfo mWebPAnimInfo{0};
 #endif
 };