From 6c318fc34ba2351a1db18fc8b7cac77d3d82911b Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 17 Jul 2025 21:05:08 +0300 Subject: [PATCH] minor fix to please clang --- 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 18ea2175..e7cd8fca 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3902,7 +3902,7 @@ bool wallet2::balance(std::list& balances, u //manually added assets should be always present, at least as zero balanced items for (const auto& [asset_id, custom_asset_entry] : m_custom_assets) { - if (std::find_if(balances.begin(), balances.end(), [&](wallet_public::asset_balance_entry& e){ return e.asset_info.asset_id == asset_id; }) != balances.end()) + if (std::find_if(balances.begin(), balances.end(), [asset_id = asset_id](wallet_public::asset_balance_entry& e){ return e.asset_info.asset_id == asset_id; }) != balances.end()) continue; wallet_public::asset_balance_entry& new_item = balances.emplace_back(); new_item.asset_info.asset_id = asset_id;