Page MenuHomePhabricator

net: Use C++11 member initialization in protocol
ClosedPublic

Authored by Fabien on Feb 9 2021, 13:43.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABCfcf518ba31d8: net: Use C++11 member initialization in protocol
Summary
This change removes Init from the constructors and instead uses C++11
member initialization. This removes a bunch of boilerplate, makes the
code easier to read. Also, C++11 member initialization avoids accidental
uninitialized members.

Backport of core PR19020.

Test Plan
ninja all check-all

Diff Detail

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