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/blockchain_utilities/blockchain_import.cpp | |
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 '')
-rw-r--r-- | src/blockchain_utilities/blockchain_import.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp index 70d1dd696..758deb7e4 100644 --- a/src/blockchain_utilities/blockchain_import.cpp +++ b/src/blockchain_utilities/blockchain_import.cpp @@ -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(). |