diff options
author | MacroFake <falke.marco@gmail.com> | 2022-04-29 11:44:50 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-04-29 11:40:42 +0200 |
commit | fad35e9afdd0bb6e8d6bf7f34a31de11aeb2d39b (patch) | |
tree | 6d227932964857b2c388c5636c64728aa690d4ae | |
parent | 91a67361364691e765982d6d6f6dafc032423aea (diff) | |
download | bitcoin-fad35e9afdd0bb6e8d6bf7f34a31de11aeb2d39b.tar.xz |
test: Remove boost::split from rpc_tests.cpp
-rw-r--r-- | src/test/rpc_tests.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index 50b5078110..7cec287e8f 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 <rpc/client.h> -#include <rpc/server.h> -#include <rpc/util.h> - #include <core_io.h> #include <interfaces/chain.h> #include <node/context.h> +#include <rpc/blockchain.h> +#include <rpc/client.h> +#include <rpc/server.h> +#include <rpc/util.h> #include <test/util/setup_common.h> +#include <univalue.h> #include <util/time.h> #include <any> -#include <boost/algorithm/string.hpp> #include <boost/test/unit_test.hpp> -#include <univalue.h> - -#include <rpc/blockchain.h> - class RPCTestingSetup : public TestingSetup { public: @@ -29,8 +25,7 @@ public: UniValue RPCTestingSetup::CallRPC(std::string args) { - std::vector<std::string> vArgs; - boost::split(vArgs, args, boost::is_any_of(" \t")); + std::vector<std::string> vArgs{SplitString(args, ' ')}; std::string strMethod = vArgs[0]; vArgs.erase(vArgs.begin()); JSONRPCRequest request; |