mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Fix some const clang complaints
This commit is contained in:
parent
ec62262c51
commit
3ef0e6d96f
1 changed files with 2 additions and 2 deletions
|
|
@ -2940,7 +2940,7 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac
|
||||||
const OutputType change_type = TransactionChangeType(coin_control.m_change_type ? *coin_control.m_change_type : m_default_change_type, vecSend);
|
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.
|
// One change script per output asset.
|
||||||
size_t index = 0;
|
size_t index = 0;
|
||||||
for (const std::pair<CAsset, CAmount>& value : mapValue) {
|
for (const auto& value : mapValue) {
|
||||||
CPubKey vchPubKey;
|
CPubKey vchPubKey;
|
||||||
if (index >= reserveKeys.size() || !reserveKeys[index]->GetReservedKey(vchPubKey, true)) {
|
if (index >= reserveKeys.size() || !reserveKeys[index]->GetReservedKey(vchPubKey, true)) {
|
||||||
strFailReason = _("Keypool ran out, please call keypoolrefill first");
|
strFailReason = _("Keypool ran out, please call keypoolrefill first");
|
||||||
|
|
@ -3106,7 +3106,7 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac
|
||||||
|
|
||||||
const CAmountMap mapChange = mapValueIn - mapValueToSelect;
|
const CAmountMap mapChange = mapValueIn - mapValueToSelect;
|
||||||
|
|
||||||
for(const std::pair<CAsset, CAmount>& assetChange : mapChange) {
|
for(const auto& assetChange : mapChange) {
|
||||||
if (assetChange.second == 0) {
|
if (assetChange.second == 0) {
|
||||||
vChangePosInOut.erase(assetChange.first);
|
vChangePosInOut.erase(assetChange.first);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue