From 38140372d8c8dd32267943d5d79b2ce2c0a032fb Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 31 Oct 2017 15:01:57 +0100 Subject: Use std::make_unique --- src/animator.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/animator.cc') diff --git a/src/animator.cc b/src/animator.cc index 7ed412c..a0108c2 100644 --- a/src/animator.cc +++ b/src/animator.cc @@ -257,6 +257,7 @@ private: } // namespace // static -Animator* Animator::create(std::shared_ptr const& looper) { - return new AnimatorImpl(looper); +std::unique_ptr Animator::create( + std::shared_ptr const& looper) { + return std::make_unique(looper); } -- cgit v1.3