mirror of
https://github.com/monero-project/monero.git
synced 2026-01-19 08:01:00 -08:00
Remove copies from foreach loops (thanks to Clang)
This commit is contained in:
@@ -973,7 +973,7 @@ start:
|
||||
std::pair<bool, uint64_t> Blockchain::check_difficulty_checkpoints() const
|
||||
{
|
||||
uint64_t res = 0;
|
||||
for (const std::pair<uint64_t, difficulty_type>& i : m_checkpoints.get_difficulty_points())
|
||||
for (const std::pair<const uint64_t, difficulty_type>& i : m_checkpoints.get_difficulty_points())
|
||||
{
|
||||
if (i.first >= m_db->height())
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user