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
/
ConcurrentSkipListTest.cpp
diff --git
a/folly/test/ConcurrentSkipListTest.cpp
b/folly/test/ConcurrentSkipListTest.cpp
index dc3deda7af04b5a45a77b558731d78e25d7afdc6..4447463e39abbb4a573aef7455d9d7eb69310827 100644
(file)
--- a/
folly/test/ConcurrentSkipListTest.cpp
+++ b/
folly/test/ConcurrentSkipListTest.cpp
@@
-286,7
+286,7
@@
TEST(ConcurrentSkipList, TestMovableData) {
static const int N = 10;
for (int i = 0; i < N; ++i) {
- accessor.insert(std::
unique_ptr<int>(new int(i)
));
+ accessor.insert(std::
make_unique<int>(i
));
}
for (int i = 0; i < N; ++i) {