diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-03-26 23:32:45 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-03-26 23:32:45 +0000 |
commit | 25672d3f10e71f4db36d9497e2440f2ac26a6e01 (patch) | |
tree | 5ff537cd03c2396a56e37dcb1b591f6c0f226580 /src/wallet/wallet2.h | |
parent | wallet: do not leak owned amounts to the daemon unless --trusted-daemon (diff) | |
download | monero-25672d3f10e71f4db36d9497e2440f2ac26a6e01.tar.xz |
wallet: pass std::function by const ref, not value
Because we can.
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 566be59c6..fc700a3de 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -403,7 +403,7 @@ namespace tools uint64_t get_upper_tranaction_size_limit(); void check_pending_txes(); std::vector<uint64_t> get_unspent_amounts_vector(); - std::vector<size_t> select_available_outputs(std::function<bool(const transfer_details &td)> f); + std::vector<size_t> select_available_outputs(const std::function<bool(const transfer_details &td)> &f); std::vector<size_t> select_available_unmixable_outputs(bool trusted_daemon); cryptonote::account_base m_account; |