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
5 changed files with 5 additions and 5 deletions

View File

@@ -459,7 +459,7 @@ int import_from_file(cryptonote::core& core, const std::string& import_file_path
// tx number 1: coinbase tx
// tx number 2 onwards: archived_txs
for (transaction tx : archived_txs)
for (const transaction &tx : archived_txs)
{
// add blocks with verification.
// for Blockchain and blockchain_storage add_new_block().