X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Ftest%2FMoveWrapperTest.cpp;h=305a3774666363b4d025c176c7301055b2343cf8;hb=6c511999f92066ed84778bca4491c8d139a3195d;hp=a7d64f8916f58de3ac95a26c265b532b326164e5;hpb=ed8c80a0e0988e4ce687f51ca832a00e4a6b7930;p=folly.git diff --git a/folly/test/MoveWrapperTest.cpp b/folly/test/MoveWrapperTest.cpp index a7d64f89..305a3774 100644 --- a/folly/test/MoveWrapperTest.cpp +++ b/folly/test/MoveWrapperTest.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2017 Facebook, Inc. + * Copyright 2013-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ TEST(makeMoveWrapper, Empty) { } TEST(makeMoveWrapper, NonEmpty) { - auto u = std::unique_ptr(new int(5)); + auto u = std::make_unique(5); EXPECT_EQ(*u, 5); auto p = makeMoveWrapper(std::move(u)); EXPECT_TRUE(!u); @@ -50,4 +50,4 @@ TEST(makeMoveWrapper, lvalue_copyable) { makeMoveWrapper(p); } -} // namespace +} // namespace folly