Page MenuHomePhabricator

Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations.
ClosedPublic

Authored by fpelliccioni on Oct 7 2019, 17:47.

Details

Summary

Make objects in range declarations immutable by default.

Backport of Bitcoin Core PR13249
https://github.com/bitcoin/bitcoin/pull/13249

(D4191 done again)

Test Plan
make check-all

Diff Detail

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

Event Timeline

deadalnix added inline comments.
src/rpc/blockchain.cpp
503 ↗(On Diff #13383)

Interesting :)

This revision is now accepted and ready to land.Oct 8 2019, 15:56