From 3ba2840e7ee81341b0748c0121aedc2e9305041a Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 10 Mar 2021 17:28:08 +0800 Subject: scripted-diff: remove MakeUnique() -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 /d' $(git grep -l '#include ' src) sed -i -e '/util\/memory.h \\/d' src/Makefile.am -END VERIFY SCRIPT- --- src/node/interfaces.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/node') diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index 62ef72ef38..8611989d01 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -613,7 +613,7 @@ public: } std::unique_ptr handleNotifications(std::shared_ptr notifications) override { - return MakeUnique(std::move(notifications)); + return std::make_unique(std::move(notifications)); } void waitForNotificationsIfTipChanged(const uint256& old_tip) override { @@ -626,7 +626,7 @@ public: } std::unique_ptr handleRpc(const CRPCCommand& command) override { - return MakeUnique(command); + return std::make_unique(command); } bool rpcEnableDeprecated(const std::string& method) override { return IsDeprecatedRPCEnabled(method); } void rpcRunLater(const std::string& name, std::function fn, int64_t seconds) override @@ -669,6 +669,6 @@ public: } // namespace node namespace interfaces { -std::unique_ptr MakeNode(NodeContext* context) { return MakeUnique(context); } -std::unique_ptr MakeChain(NodeContext& context) { return MakeUnique(context); } +std::unique_ptr MakeNode(NodeContext* context) { return std::make_unique(context); } +std::unique_ptr MakeChain(NodeContext& context) { return std::make_unique(context); } } // namespace interfaces -- cgit v1.2.3