projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initialize ImageProperties structure
[platform/core/uifw/dali-adaptor.git]
/
adaptors
/
devel-api
/
adaptor-framework
/
gif-loading.cpp
diff --git
a/adaptors/devel-api/adaptor-framework/gif-loading.cpp
b/adaptors/devel-api/adaptor-framework/gif-loading.cpp
index
88ca5ad
..
e8009e9
100755
(executable)
--- 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
{
struct ImageProperties
{
+ ImageProperties()
+ : w( 0 ),
+ h( 0 ),
+ alpha( 0 )
+ {
+ }
+
unsigned int w;
unsigned int h;
bool alpha;
unsigned int w;
unsigned int h;
bool alpha;
@@
-632,10
+639,6
@@
bool ReadHeader( LoaderInfo &loaderInfo,
FrameInfo *frameInfo = NULL;
bool full = true;
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
if( fileData.isLocalResource )
{
// local file