Modernize use of std::make_unique
[folly.git] / folly / test / small_vector_test.cpp
index bae23e95286815b7ffc2c8fead6d243007fad1d6..9f1eaf481ef5afd5d0bf26404421ccb7ab20e863 100644 (file)
@@ -176,7 +176,7 @@ struct TestBasicGuarantee {
     std::unique_ptr<folly::small_vector<Thrower,3> > workingVec;
     for (int counter = 1; !done; ++counter) {
       throwCounter = 1000;
-      workingVec.reset(new folly::small_vector<Thrower,3>(vec));
+      workingVec = std::make_unique<folly::small_vector<Thrower, 3>>(vec);
       throwCounter = counter;
       EXPECT_EQ(Thrower::alive, prepopulate * 2);
       try {