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.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/animator.hh') diff --git a/src/animator.hh b/src/animator.hh index c8072ac..4f9253c 100644 --- a/src/animator.hh +++ b/src/animator.hh @@ -39,7 +39,8 @@ public: virtual ~Animator() {} - static Animator* create(std::shared_ptr const& looper); + static std::unique_ptr create( + std::shared_ptr const& looper); virtual void start(std::shared_ptr const& animation, AnimationObserver* observer) = 0; -- cgit v1.3