From 2fef57af939c50c984cce063c8f6995cbf8714c5 Mon Sep 17 00:00:00 2001 From: janko33bd Date: Sat, 2 Sep 2017 23:48:16 +0200 Subject: [PATCH] =?UTF-8?q?return-statement=20with=20no=20value,=20in=20fu?= =?UTF-8?q?nction=20returning=20=E2=80=98long=20long=20unsigned=20int?= =?UTF-8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/qt/walletframe.cpp | 1 + src/qt/walletmodel.cpp | 6 +++--- src/qt/walletview.cpp | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp index 1fb3da984..3e844a066 100644 --- a/src/qt/walletframe.cpp +++ b/src/qt/walletframe.cpp @@ -188,6 +188,7 @@ unsigned long long WalletFrame::updateWeight() WalletView *walletView = currentWalletView(); if (walletView) return walletView->updateWeight(); + return 0; } void WalletFrame::usedSendingAddresses() diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 0f964045a..637858ba9 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -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(); } diff --git a/src/qt/walletview.cpp b/src/qt/walletview.cpp index 000edcc25..b5e810cf4 100644 --- a/src/qt/walletview.cpp +++ b/src/qt/walletview.cpp @@ -286,6 +286,7 @@ unsigned long long WalletView::updateWeight() { if(walletModel) return walletModel->updateWeight(); + return 0; } void WalletView::usedSendingAddresses()