diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-13 11:21:18 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-18 15:15:54 +0000 |
commit | b51dc5668714a88d79ddb410d0dcab1559a4bc98 (patch) | |
tree | 343b7443c8193c90eb83bcb96a9d16ae4d2f6e52 /src/daemon | |
parent | net_parse_helpers: fix regex error checking (diff) | |
download | monero-b51dc5668714a88d79ddb410d0dcab1559a4bc98.tar.xz |
use const refs in for loops for non tiny types
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/rpc_command_executor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index d7ee28baa..8aca668ad 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -1611,7 +1611,7 @@ bool t_rpc_command_executor::alt_chain_info() } tools::msg_writer() << boost::lexical_cast<std::string>(res.chains.size()) << " alternate chains found:"; - for (const auto chain: res.chains) + for (const auto &chain: res.chains) { uint64_t start_height = (chain.height - chain.length + 1); tools::msg_writer() << chain.length << " blocks long, from height " << start_height << " (" << (ires.height - start_height - 1) |