X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;h=c9db3219e5c760f0760cdb7aacdfd2f66b838118;hp=2ee7dfac3e569f375215a6c417d5c8d3e8a15719;hb=1c1980bccd1bcccdb03c69ebbe03ad51e08f343a;hpb=1d40b6207e7d1591c47cce149aae84bb60dcc416 diff --git a/src/wallet.cpp b/src/wallet.cpp index 2ee7dfa..c9db321 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -942,7 +942,7 @@ void CWalletTx::GetAccountAmounts(const string& strAccount, int64_t& nGenerated, list > listSent; GetAmounts(allGeneratedImmature, allGeneratedMature, listReceived, listSent, allFee, strSentAccount, filter); - if (strAccount == "") + if (strAccount.empty()) nGenerated = allGeneratedMature; if (strAccount == strSentAccount) { @@ -1660,7 +1660,7 @@ bool CWallet::CreateTransaction(const vector >& vecSend, CTxDB txdb("r"); { nFeeRet = nTransactionFee; - while (true) + for ( ; ; ) { wtxNew.vin.clear(); wtxNew.vout.clear(); @@ -2048,7 +2048,7 @@ bool CWallet::CreateCoinStake(uint256 &hashTx, uint32_t nOut, uint32_t nGenerati nCredit += GetProofOfStakeReward(nCoinAge, nBits, nGenerationTime); int64_t nMinFee = 0; - while (true) + for ( ; ; ) { // Set output amount if (fDontSplitCoins)