Initialize member variables to resolve unnannoying report from static analizer tool... 15/196215/1
authorHermet Park <hermetpark@gmail.com>
Wed, 26 Dec 2018 08:23:25 +0000 (17:23 +0900)
committerHermet Park <hermetpark@gmail.com>
Wed, 26 Dec 2018 08:23:25 +0000 (17:23 +0900)
Change-Id: I455c49b550afdadeff5d579704745da3a5753de3

src/lottie/lottiemodel.h
src/vector/vbitmap.cpp

index c9e0c23..b96f869 100644 (file)
@@ -403,7 +403,7 @@ public:
     long                 mStartFrame{0};
     long                 mEndFrame{0};
     float                mFrameRate{60};
-    LottieBlendMode      mBlendMode;
+    LottieBlendMode      mBlendMode{LottieBlendMode::Normal};
     std::shared_ptr<LOTLayerData> mRootLayer;
     std::unordered_map<std::string,
                        std::shared_ptr<VInterpolator>> mInterpolatorCache;
index fa46490..9a5edf9 100644 (file)
@@ -35,6 +35,7 @@ VBitmapData::VBitmapData()
       height(0),
       depth(0),
       stride(0),
+      nBytes(0),
       format(VBitmap::Format::ARGB32),
       data(nullptr),
       cleanupFunction(0),