aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-13 11:21:18 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-18 15:15:54 +0000
commitb51dc5668714a88d79ddb410d0dcab1559a4bc98 (patch)
tree343b7443c8193c90eb83bcb96a9d16ae4d2f6e52 /src/wallet/wallet2.cpp
parentnet_parse_helpers: fix regex error checking (diff)
downloadmonero-b51dc5668714a88d79ddb410d0dcab1559a4bc98.tar.xz
use const refs in for loops for non tiny types
Diffstat (limited to '')
-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 e818f576a..169c572bd 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -5126,7 +5126,7 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>>
// if there are just enough outputs to mix with, use all of them.
// Eventually this should become impossible.
uint64_t num_outs = 0, num_recent_outs = 0;
- for (auto he: resp_t.result.histogram)
+ for (const auto &he: resp_t.result.histogram)
{
if (he.amount == amount)
{