mirror of
https://github.com/monero-project/monero.git
synced 2025-07-26 03:45:22 -04:00
use const refs in for loops for non tiny types
This commit is contained in:
parent
f0568ca6ac
commit
b51dc56687
5 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue