aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-06-18 07:58:28 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-08-27 18:19:33 +0200
commitf34c8c466a0e514edac2e8683127b4176ad5d321 (patch)
tree587ba001d5d6eaae71d234009098710dd30354c3 /src/qt/bitcoin.cpp
parentf180e81d5780805a28bcc71c2bb6b16076336c3c (diff)
downloadbitcoin-f34c8c466a0e514edac2e8683127b4176ad5d321.tar.xz
Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations.
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r--src/qt/bitcoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 712d20b71e..f1d3074c2f 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -416,7 +416,7 @@ void BitcoinApplication::requestShutdown()
#ifdef ENABLE_WALLET
window->removeAllWallets();
- for (WalletModel *walletModel : m_wallet_models) {
+ for (const WalletModel* walletModel : m_wallet_models) {
delete walletModel;
}
m_wallet_models.clear();