diff options
Diffstat (limited to 'src/animator.cc')
| -rw-r--r-- | src/animator.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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<Looper> const& looper) { - return new AnimatorImpl(looper); +std::unique_ptr<Animator> Animator::create( + std::shared_ptr<Looper> const& looper) { + return std::make_unique<AnimatorImpl>(looper); } |
