From 93b3ca4b663b807173aefaad9491dc7dee59722f Mon Sep 17 00:00:00 2001 From: sowle Date: Sat, 17 Feb 2024 12:45:43 +0100 Subject: [PATCH] fix loop variable type here and there (performance) --- src/currency_core/blockchain_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 04fd1e1a..466aa7f5 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -3161,7 +3161,7 @@ bool blockchain_storage::get_pos_votes(uint64_t start_index, uint64_t end_index, summary[v.first].no++; } } - for (const auto s_entry : summary) + for (const auto& s_entry : summary) { r.votes.push_back(s_entry.second); r.votes.back().proposal_id = s_entry.first;