return-statement with no value, in function returning ‘long long unsigned int’

This commit is contained in:
janko33bd
2017-09-02 23:48:16 +02:00
parent 062eb8ccf7
commit 2fef57af93
3 changed files with 5 additions and 3 deletions

View File

@@ -188,6 +188,7 @@ unsigned long long WalletFrame::updateWeight()
WalletView *walletView = currentWalletView();
if (walletView)
return walletView->updateWeight();
return 0;
}
void WalletFrame::usedSendingAddresses()

View File

@@ -680,15 +680,15 @@ bool WalletModel::saveReceiveRequest(const std::string &sAddress, const int64_t
unsigned long long WalletModel::updateWeight()
{
if (!wallet)
return;
return 0;
TRY_LOCK(cs_main, lockMain);
if (!lockMain)
return;
return 0;
TRY_LOCK(wallet->cs_wallet, lockWallet);
if (!lockWallet)
return;
return 0;
return wallet->GetStakeWeight();
}

View File

@@ -286,6 +286,7 @@ unsigned long long WalletView::updateWeight()
{
if(walletModel)
return walletModel->updateWeight();
return 0;
}
void WalletView::usedSendingAddresses()