Page MenuHomePhabricator

style: Modernize range-based loops over m_block_index
ClosedPublic

Authored by PiRK on Jan 18 2023, 13:59.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCed473c9a8dd1: style: Modernize range-based loops over m_block_index
Summary
Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Jan 18 2023, 13:59
Fabien requested changes to this revision.Jan 19 2023, 09:24
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/node/blockstorage.cpp
244 ↗(On Diff #37576)

you missed this one

245 ↗(On Diff #37576)

See comment below

246 ↗(On Diff #37576)

also please use the suggestion from https://github.com/bitcoin/bitcoin/pull/24050/commits/c05cf7aa1e1c15089753897a10c14762027d4b99#r792878138 and use emplace_back instead of reconstructing a pair.

426–431 ↗(On Diff #37576)

The pointer is not necessary

src/validation.cpp
3560 ↗(On Diff #37576)

Macro startrekagree:

5223 ↗(On Diff #37576)

That should be const, but let's leave that for another diff as it requires other unrelated changes

This revision now requires changes to proceed.Jan 19 2023, 09:24
This revision is now accepted and ready to land.Jan 20 2023, 13:08