From bd129849f0b634bddf64a195097b15d585e8f2bd Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Thu, 28 Jan 2021 23:42:40 -0500 Subject: Remove copies from foreach loops (thanks to Clang) --- src/cryptonote_core/blockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cryptonote_core/blockchain.cpp') diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 8ec624254..d160cc66f 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -973,7 +973,7 @@ start: std::pair Blockchain::check_difficulty_checkpoints() const { uint64_t res = 0; - for (const std::pair& i : m_checkpoints.get_difficulty_points()) + for (const std::pair& i : m_checkpoints.get_difficulty_points()) { if (i.first >= m_db->height()) break; -- cgit v1.2.3