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

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

you missed this one

245

See comment below

246

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

The pointer is not necessary

src/validation.cpp
3560

Macro startrekagree:

5223

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