buildfix: make it build with c++11
authorsubhransu mohanty <sub.mohanty@samsung.com>
Mon, 20 May 2019 04:18:12 +0000 (13:18 +0900)
committerHermet Park <hermetpark@gmail.com>
Wed, 22 May 2019 04:01:13 +0000 (13:01 +0900)
example/lottie2gif.cpp

index ae9c58c..38ad9e8 100644 (file)
@@ -72,7 +72,7 @@ public:
         auto player = rlottie::Animation::loadFromFile(fileName);
         if (!player) return help();
 
-        auto buffer = std::make_unique<uint32_t[]>(w * h);
+        auto buffer = std::unique_ptr<uint32_t[]>(new uint32_t[w * h]);
         size_t frameCount = player->totalFrame();
 
         GifBuilder builder(baseName.data(), w, h);