aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-26 23:32:45 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-26 23:32:45 +0000
commit25672d3f10e71f4db36d9497e2440f2ac26a6e01 (patch)
tree5ff537cd03c2396a56e37dcb1b591f6c0f226580 /src/wallet/wallet2.cpp
parentwallet: do not leak owned amounts to the daemon unless --trusted-daemon (diff)
downloadmonero-25672d3f10e71f4db36d9497e2440f2ac26a6e01.tar.xz
wallet: pass std::function by const ref, not value
Because we can.
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 3ec2265fa..6fd77eead 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -2655,7 +2655,7 @@ uint64_t wallet2::get_upper_tranaction_size_limit()
return ((full_reward_zone * 125) / 100) - CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE;
}
//----------------------------------------------------------------------------------------------------
-std::vector<size_t> wallet2::select_available_outputs(std::function<bool(const transfer_details &td)> f)
+std::vector<size_t> wallet2::select_available_outputs(const std::function<bool(const transfer_details &td)> &f)
{
std::vector<size_t> outputs;
size_t n = 0;