From 054be248cb88a77c0ae6456798d4271691b6bde7 Mon Sep 17 00:00:00 2001 From: sowle Date: Sat, 17 Feb 2024 05:06:44 +0100 Subject: [PATCH] fix loop variable type here and there (performance) --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 257646b9..54ee3934 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -1636,7 +1636,7 @@ void wallet2::load_wti_from_process_transaction_context(wallet_public::wallet_tr { wti.remote_addresses = tx_process_context.recipients; wti.remote_aliases = tx_process_context.remote_aliases; - for (const auto bce : tx_process_context.total_balance_change) + for (const auto& bce : tx_process_context.total_balance_change) { wallet_public::wallet_sub_transfer_info wsti = AUTO_VAL_INIT(wsti); wsti.asset_id = bce.first;