From d7ca90ac78eba7dbfda2cd758d445c8ed9f0239c Mon Sep 17 00:00:00 2001 From: Seoyeon Kim Date: Fri, 20 Apr 2018 11:08:23 +0900 Subject: [PATCH] Initialize ImageProperties structure - Initialized ImageProperties structure and its member variables inside. Change-Id: Ieea3679c767af487126ba78f817d29cb55369331 Signed-off-by: Seoyeon Kim --- adaptors/devel-api/adaptor-framework/gif-loading.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/adaptors/devel-api/adaptor-framework/gif-loading.cpp b/adaptors/devel-api/adaptor-framework/gif-loading.cpp index 88ca5ad..e8009e9 100755 --- a/adaptors/devel-api/adaptor-framework/gif-loading.cpp +++ b/adaptors/devel-api/adaptor-framework/gif-loading.cpp @@ -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 -- 2.7.4