diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index a9aa6c6b..468c15e5 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -5880,10 +5880,9 @@ construct_tx_param wallet2::get_default_construct_tx_param_inital() ctp.shuffle = 0; return ctp; } -const construct_tx_param& wallet2::get_default_construct_tx_param() +construct_tx_param wallet2::get_default_construct_tx_param() { - construct_tx_param ctp = get_default_construct_tx_param_inital(); - return ctp; + return get_default_construct_tx_param_inital(); } //---------------------------------------------------------------------------------------------------- bool wallet2::store_unsigned_tx_to_file_and_reserve_transfers(const currency::finalize_tx_param& ftp, const std::string& filename, std::string* p_unsigned_tx_blob_str /* = nullptr */) diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 1de32a3e..a630312e 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -1006,7 +1006,7 @@ private: template bool process_input_t(const input_t& in_t, wallet2::process_transaction_context& ptc, const currency::transaction& tx); - const construct_tx_param& get_default_construct_tx_param(); + construct_tx_param get_default_construct_tx_param(); uint64_t get_tx_expiration_median() const;