From 8a19cd7ae0b7ee664040b01e3032fadeb07a2c18 Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 30 Apr 2020 10:30:14 +0300 Subject: [PATCH] gcc compilation fixup --- src/currency_core/currency_format_utils_abstract.h | 2 +- src/wallet/wallet2.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/currency_core/currency_format_utils_abstract.h b/src/currency_core/currency_format_utils_abstract.h index a796c974..5f1c7cf6 100644 --- a/src/currency_core/currency_format_utils_abstract.h +++ b/src/currency_core/currency_format_utils_abstract.h @@ -109,7 +109,7 @@ namespace currency //--------------------------------------------------------------- // callback should return true to continue iterating through the container template - bool handle_2_alternative_types_in_variant_container(const container_t& container, callback_t& cb) + bool handle_2_alternative_types_in_variant_container(const container_t& container, callback_t cb) { bool found = false; for (auto& item : container) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 73a6fb83..0d74da26 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -481,7 +481,6 @@ void wallet2::prepare_wti_decrypted_attachments(wallet_public::wallet_transfer_i { if (wti.remote_addresses.empty()) { - account_public_address receiver_address = AUTO_VAL_INIT(receiver_address); handle_2_alternative_types_in_variant_container(decrypted_att, [&](const tx_receiver& p) { std::string addr_str = currency::get_account_address_as_str(p.acc_addr); wti.remote_addresses.push_back(addr_str);