diff options
author | Ankit Meel <ankitjmeel@gmail.com> | 2020-11-09 16:36:10 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2020-11-09 17:02:16 +0300 |
commit | 6507449e54a167c63a72229e4d0119dd2af68ae5 (patch) | |
tree | be324f570d53a2d2982a5fee626c166dddfd1f27 /source/blender/blenlib/tests/BLI_stack_cxx_test.cc | |
parent | 021c40167dea0fae056775f979a6e94c8fcc2a37 (diff) |
Cleanup: fix wrong merge, remove extra unique_ptr.
Mistakes added in 3cb4c513080ebeead7c5629a7f0503fae9513803 and
bec1765340c3c13f002882ce147762e4c38ed2c6
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D9514
Diffstat (limited to 'source/blender/blenlib/tests/BLI_stack_cxx_test.cc')
-rw-r--r-- | source/blender/blenlib/tests/BLI_stack_cxx_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/tests/BLI_stack_cxx_test.cc b/source/blender/blenlib/tests/BLI_stack_cxx_test.cc index 57e7bfdfdce..f1fcdae3a52 100644 --- a/source/blender/blenlib/tests/BLI_stack_cxx_test.cc +++ b/source/blender/blenlib/tests/BLI_stack_cxx_test.cc @@ -170,8 +170,8 @@ TEST(stack, Peek) TEST(stack, UniquePtrValues) { Stack<std::unique_ptr<int>> stack; - stack.push(std::unique_ptr<int>(std::make_unique<int>())); - stack.push(std::unique_ptr<int>(std::make_unique<int>())); + stack.push(std::make_unique<int>()); + stack.push(std::make_unique<int>()); std::unique_ptr<int> a = stack.pop(); std::unique_ptr<int> &b = stack.peek(); UNUSED_VARS(a, b); |