From c203f6eb0ae3f5e768d5c5cfea1e02113fc19c9f Mon Sep 17 00:00:00 2001 From: SChernykh Date: Tue, 31 May 2022 16:51:09 +0200 Subject: [PATCH] Fixed a new cppcheck issue --- src/side_chain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/side_chain.cpp b/src/side_chain.cpp index 04c9e3a..64505ba 100644 --- a/src/side_chain.cpp +++ b/src/side_chain.cpp @@ -167,7 +167,7 @@ SideChain::~SideChain() uv_mutex_destroy(&m_seenWalletsLock); uv_mutex_destroy(&m_seenBlocksLock); uv_rwlock_destroy(&m_curDifficultyLock); - for (auto& it : m_blocksById) { + for (const auto& it : m_blocksById) { delete it.second; } }