Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Meel <ankitjmeel@gmail.com>2020-11-09 16:36:10 +0300
committerAnkit Meel <ankitjmeel@gmail.com>2020-11-09 17:02:16 +0300
commit6507449e54a167c63a72229e4d0119dd2af68ae5 (patch)
treebe324f570d53a2d2982a5fee626c166dddfd1f27 /source/blender/blenlib/tests/BLI_set_test.cc
parent021c40167dea0fae056775f979a6e94c8fcc2a37 (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_set_test.cc')
-rw-r--r--source/blender/blenlib/tests/BLI_set_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/tests/BLI_set_test.cc b/source/blender/blenlib/tests/BLI_set_test.cc
index 840472e4c0b..ea4369d6b8f 100644
--- a/source/blender/blenlib/tests/BLI_set_test.cc
+++ b/source/blender/blenlib/tests/BLI_set_test.cc
@@ -221,10 +221,10 @@ TEST(set, OftenAddRemoveContained)
TEST(set, UniquePtrValues)
{
Set<std::unique_ptr<int>> set;
- set.add_new(std::unique_ptr<int>(std::make_unique<int>()));
- auto value1 = std::unique_ptr<int>(std::make_unique<int>());
+ set.add_new(std::make_unique<int>());
+ auto value1 = std::make_unique<int>();
set.add_new(std::move(value1));
- set.add(std::unique_ptr<int>(std::make_unique<int>()));
+ set.add(std::make_unique<int>());
EXPECT_EQ(set.size(), 3);
}