From 3ef0e6d96f33de216ce44be1c0da527c25bdc799 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Wed, 10 Apr 2019 09:20:27 -0400 Subject: [PATCH] Fix some const clang complaints --- src/wallet/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 697c726a9e..ba87d4d352 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2940,7 +2940,7 @@ bool CWallet::CreateTransaction(const std::vector& vecSend, CTransac const OutputType change_type = TransactionChangeType(coin_control.m_change_type ? *coin_control.m_change_type : m_default_change_type, vecSend); // One change script per output asset. size_t index = 0; - for (const std::pair& value : mapValue) { + for (const auto& value : mapValue) { CPubKey vchPubKey; if (index >= reserveKeys.size() || !reserveKeys[index]->GetReservedKey(vchPubKey, true)) { strFailReason = _("Keypool ran out, please call keypoolrefill first"); @@ -3106,7 +3106,7 @@ bool CWallet::CreateTransaction(const std::vector& vecSend, CTransac const CAmountMap mapChange = mapValueIn - mapValueToSelect; - for(const std::pair& assetChange : mapChange) { + for(const auto& assetChange : mapChange) { if (assetChange.second == 0) { vChangePosInOut.erase(assetChange.first); continue;