mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
scripted-diff: remove MakeUnique<T>()
-BEGIN VERIFY SCRIPT- git rm src/util/memory.h sed -i -e 's/MakeUnique/std::make_unique/g' $(git grep -l MakeUnique src) sed -i -e '/#include <util\/memory.h>/d' $(git grep -l '#include <util/memory.h>' src) sed -i -e '/util\/memory.h \\/d' src/Makefile.am -END VERIFY SCRIPT-
This commit is contained in:
@@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE(util_datadir)
|
||||
BOOST_AUTO_TEST_CASE(util_check)
|
||||
{
|
||||
// Check that Assert can forward
|
||||
const std::unique_ptr<int> p_two = Assert(MakeUnique<int>(2));
|
||||
const std::unique_ptr<int> p_two = Assert(std::make_unique<int>(2));
|
||||
// Check that Assert works on lvalues and rvalues
|
||||
const int two = *Assert(p_two);
|
||||
Assert(two == 2);
|
||||
|
||||
Reference in New Issue
Block a user