From fad35e9afdd0bb6e8d6bf7f34a31de11aeb2d39b Mon Sep 17 00:00:00 2001 From: MacroFake Date: Fri, 29 Apr 2022 11:44:50 +0200 Subject: [PATCH] test: Remove boost::split from rpc_tests.cpp --- src/test/rpc_tests.cpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index 50b5078110c..7cec287e8f3 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -2,25 +2,21 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include -#include -#include - #include #include #include +#include +#include +#include +#include #include +#include #include #include -#include #include -#include - -#include - class RPCTestingSetup : public TestingSetup { public: @@ -29,8 +25,7 @@ public: UniValue RPCTestingSetup::CallRPC(std::string args) { - std::vector vArgs; - boost::split(vArgs, args, boost::is_any_of(" \t")); + std::vector vArgs{SplitString(args, ' ')}; std::string strMethod = vArgs[0]; vArgs.erase(vArgs.begin()); JSONRPCRequest request;