From 8667453efa9cdcf7c3cff069155a14095397df10 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Mon, 20 May 2019 13:18:12 +0900 Subject: [PATCH] buildfix: make it build with c++11 --- example/lottie2gif.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/lottie2gif.cpp b/example/lottie2gif.cpp index ae9c58c2a3..38ad9e863e 100644 --- a/example/lottie2gif.cpp +++ b/example/lottie2gif.cpp @@ -72,7 +72,7 @@ public: auto player = rlottie::Animation::loadFromFile(fileName); if (!player) return help(); - auto buffer = std::make_unique(w * h); + auto buffer = std::unique_ptr(new uint32_t[w * h]); size_t frameCount = player->totalFrame(); GifBuilder builder(baseName.data(), w, h);