From e5c8b6b8ff18779889307470b0f98dcccc30173a Mon Sep 17 00:00:00 2001 From: Anthony Fieroni Date: Tue, 16 Jul 2019 21:26:28 +0300 Subject: [PATCH] Better use copies on iterate claim and support re-add Signed-off-by: Anthony Fieroni --- src/claimtrieforks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/claimtrieforks.cpp b/src/claimtrieforks.cpp index 01c69a4fd..ae0a7c5da 100644 --- a/src/claimtrieforks.cpp +++ b/src/claimtrieforks.cpp @@ -166,7 +166,7 @@ bool CClaimTrieCacheNormalizationFork::normalizeAllNamesInTrieIfNecessary(insert continue; auto supports = getSupportsForName(it.key()); - for (auto& support : supports) { + for (auto support : supports) { // if it's already going to expire just skip it if (support.nHeight + expirationTime() <= nNextHeight) continue; @@ -183,7 +183,7 @@ bool CClaimTrieCacheNormalizationFork::normalizeAllNamesInTrieIfNecessary(insert if (!cached || cached->empty()) continue; - for (auto& claim : it->claims) { + for (auto claim : it->claims) { if (claim.nHeight + expirationTime() <= nNextHeight) continue;