From: CryptoManiac Date: Sun, 6 Mar 2016 22:22:19 +0000 (+0300) Subject: Merge pull request #287 from svost/patch X-Git-Tag: nvc-v0.5.6~23^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=ce776d5349e31d72129c23a5e0d7dec0ba647c6a;hp=1ebe5b92ef18395cdae9b88fc38b0ed6166c3243 Merge pull request #287 from svost/patch Minor fix --- diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index f52ae80..d0f4e15 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -427,7 +427,8 @@ int ReadHTTPStatus(std::basic_istream& stream, int &proto) string str; getline(stream, str); vector vWords; - boost::split(vWords, str, boost::is_any_of(" ")); + istringstream iss(str); + copy(istream_iterator(iss), istream_iterator(), back_inserter(vWords)); if (vWords.size() < 2) return HTTP_INTERNAL_SERVER_ERROR; proto = 0; diff --git a/src/walletdb.cpp b/src/walletdb.cpp index a072f18..5c78ff2 100644 --- a/src/walletdb.cpp +++ b/src/walletdb.cpp @@ -879,7 +879,8 @@ bool ImportWallet(CWallet *pwallet, const string& strLocation) continue; std::vector vstr; - boost::split(vstr, line, boost::is_any_of(" ")); + istringstream iss(line); + copy(istream_iterator(iss), istream_iterator(), back_inserter(vstr)); if (vstr.size() < 2) continue; CBitcoinSecret vchSecret;