projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Modernize use of std::make_unique
[folly.git]
/
folly
/
test
/
FBVectorTest.cpp
diff --git
a/folly/test/FBVectorTest.cpp
b/folly/test/FBVectorTest.cpp
index 472ce8d72f6779d90feff86efa4f56056db817af..3194ee742a312eb1a92dbd37d738a8214876b114 100644
(file)
--- a/
folly/test/FBVectorTest.cpp
+++ b/
folly/test/FBVectorTest.cpp
@@
-191,7
+191,7
@@
TEST(fbvector, unique_ptr) {
v[0] = std::move(p);
EXPECT_FALSE(v[0].get());
- v[0]
.reset(new int(32)
);
+ v[0]
= std::make_unique<int>(32
);
std::unique_ptr<int> somePtr;
v.insert(v.begin(), std::move(somePtr));
EXPECT_EQ(*v[1], 32);