diff options
| author | Joel Klinghed <the_jk@opera.com> | 2017-10-31 15:01:57 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@opera.com> | 2017-10-31 15:01:57 +0100 |
| commit | 38140372d8c8dd32267943d5d79b2ce2c0a032fb (patch) | |
| tree | 0e2555e591092f934e05451ef4a6df18c5ddc739 /src/animator.cc | |
| parent | 2e5352a1128da3ff4637561788a7da8e6b24ab9c (diff) | |
Use std::make_unique
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); } |
