Initialize ImageProperties structure 38/176538/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 20 Apr 2018 02:08:23 +0000 (11:08 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 20 Apr 2018 02:10:10 +0000 (11:10 +0900)
- Initialized ImageProperties structure and its member variables inside.

Change-Id: Ieea3679c767af487126ba78f817d29cb55369331
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali/devel-api/adaptor-framework/gif-loading.cpp

index 3e43c68..ba9db54 100755 (executable)
@@ -167,6 +167,13 @@ struct LoaderInfo
 
 struct ImageProperties
 {
+  ImageProperties()
+  : w( 0 ),
+    h( 0 ),
+    alpha( 0 )
+  {
+  }
+
   unsigned int w;
   unsigned int h;
   bool alpha;
@@ -632,10 +639,6 @@ bool ReadHeader( LoaderInfo &loaderInfo,
   FrameInfo *frameInfo = NULL;
   bool full = true;
 
-  // init prop struct with some default null values
-  prop.w = 0;
-  prop.h = 0;
-
   if( fileData.isLocalResource )
   {
     // local file