Skip to content

Commit

Permalink
Change iterator to reference type in buildPollTable
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed Sep 7, 2021
1 parent 61464cf commit 3c1ae8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/voting/votingmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ std::vector<PollItem> VotingModel::buildPollTable(const PollFilterFlag flags) co

LOCK(cs_main);

for (const auto iter : m_registry.Polls().Where(flags)) {
for (const auto& iter : m_registry.Polls().Where(flags)) {
if (std::optional<PollItem> item = BuildPollItem(iter)) {
items.push_back(std::move(*item));
}
Expand Down

0 comments on commit 3c1ae8b

Please sign in to comment.