Modernize use of std::make_unique
[folly.git] / folly / test / ConcurrentSkipListTest.cpp
index dc3deda7af04b5a45a77b558731d78e25d7afdc6..4447463e39abbb4a573aef7455d9d7eb69310827 100644 (file)
@@ -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) {