diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-11-06 18:05:40 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2020-11-06 18:47:16 +0300 |
commit | 3cb4c513080ebeead7c5629a7f0503fae9513803 (patch) | |
tree | 624947fc61a48c3c4bd681814a56456e093184e8 /source/blender/freestyle/intern/view_map/AutoPtrHelper.h | |
parent | ce70f2e1e0960c8b28dfbe3b9f5b4eeb7a49d317 (diff) |
Cleanup: Clang-Tidy, modernize-make-unique
Diffstat (limited to 'source/blender/freestyle/intern/view_map/AutoPtrHelper.h')
-rw-r--r-- | source/blender/freestyle/intern/view_map/AutoPtrHelper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/view_map/AutoPtrHelper.h b/source/blender/freestyle/intern/view_map/AutoPtrHelper.h index 94fd80bc0fb..cfcfa5e651b 100644 --- a/source/blender/freestyle/intern/view_map/AutoPtrHelper.h +++ b/source/blender/freestyle/intern/view_map/AutoPtrHelper.h @@ -27,6 +27,8 @@ namespace Freestyle { template<typename T> class AutoPtr : public std::unique_ptr<T> { public: + using std::unique_ptr<T>::unique_ptr; + AutoPtr() : std::unique_ptr<T>() { } @@ -42,6 +44,8 @@ template<typename T> class AutoPtr : public std::unique_ptr<T> { other.release(); } + using std::unique_ptr<T>::operator=; + template<typename X> AutoPtr &operator=(AutoPtr<X> &other) = delete; }; |