X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwalletdb.cpp;fp=src%2Fwalletdb.cpp;h=42becb3a94d176955dd163486958412b4a16d5dc;hp=65cb65532bd620b2267c8364549e43d8d363611c;hb=60cf27d9500deb3bc80ffa8ce5dc3e8284a4c658;hpb=3fa5baa680a6c95f62454e421b02f91247164d9d diff --git a/src/walletdb.cpp b/src/walletdb.cpp index 65cb655..42becb3 100644 --- a/src/walletdb.cpp +++ b/src/walletdb.cpp @@ -7,20 +7,13 @@ #include "wallet.h" #include "base58.h" -#include -#include - #include #include -#include -#include -#include -#include -#include +#include +#include using namespace std; -using namespace boost; static uint64_t nAccountingEntryNumber = 0; @@ -891,13 +884,13 @@ bool ImportWallet(CWallet *pwallet, const string& strLocation) std::string strLabel; bool fLabel = true; for (unsigned int nStr = 2; nStr < vstr.size(); nStr++) { - if (boost::algorithm::starts_with(vstr[nStr], "#")) + if (vstr[nStr].compare(0,1, "#") == 0) break; if (vstr[nStr] == "change=1") fLabel = false; if (vstr[nStr] == "reserve=1") fLabel = false; - if (boost::algorithm::starts_with(vstr[nStr], "label=")) { + if (vstr[nStr].compare(0,6, "label=") == 0) { strLabel = DecodeDumpString(vstr[nStr].substr(6)); fLabel = true; }