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;