From: Adeel Kazmi Date: Tue, 2 Jan 2018 15:42:15 +0000 (+0000) Subject: Initialise member variables of ImageFrame struct in rolling image caches X-Git-Tag: dali_1.3.6~5 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=73b9150f46544318cca9d19f502581a9321fbbab Initialise member variables of ImageFrame struct in rolling image caches This was required as in the SVACE compiler, a compiler warning of these values possibly being used without initialising. Change-Id: I3714be8534679a7769970939d8cea7c4919d0253 --- diff --git a/dali-toolkit/internal/visuals/animated-image/rolling-gif-image-cache.h b/dali-toolkit/internal/visuals/animated-image/rolling-gif-image-cache.h index 778eeda..d912ab3 100644 --- a/dali-toolkit/internal/visuals/animated-image/rolling-gif-image-cache.h +++ b/dali-toolkit/internal/visuals/animated-image/rolling-gif-image-cache.h @@ -2,7 +2,7 @@ #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. @@ -105,7 +105,7 @@ private: */ struct ImageFrame { - unsigned int mFrameNumber; + unsigned int mFrameNumber = 0u; }; GifLoading& mGifLoading; diff --git a/dali-toolkit/internal/visuals/animated-image/rolling-image-cache.h b/dali-toolkit/internal/visuals/animated-image/rolling-image-cache.h index 06240c6..b1fcce3 100644 --- a/dali-toolkit/internal/visuals/animated-image/rolling-image-cache.h +++ b/dali-toolkit/internal/visuals/animated-image/rolling-image-cache.h @@ -2,7 +2,7 @@ #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. @@ -119,8 +119,8 @@ private: */ struct ImageFrame { - unsigned int mUrlIndex; - bool mReady; + unsigned int mUrlIndex = 0u; + bool mReady = false; }; std::vector& mImageUrls;