use const refs in for loops for non tiny types

This commit is contained in:
moneromooo-monero 2017-12-13 11:21:18 +00:00
parent f0568ca6ac
commit b51dc56687
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
5 changed files with 5 additions and 5 deletions

View file

@ -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)