Page MenuHomePhabricator

Fix enum NumConnections shadowing warning
ClosedPublic

Authored by Fabien on Dec 13 2019, 16:07.

Details

Summary

Reduce the scope of the NumConnections enum in clientModel.cpp by
making it part of the ClientModel class.

This is an alternative to D4681.

Test Plan
ninja check

Check the -Wshadow warning no longer exist.

Diff Detail

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

Event Timeline

jasonbcox requested changes to this revision.Dec 13 2019, 21:18
jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
src/qt/clientmodel.h
8 ↗(On Diff #14838)

Holdover from D4681? This doesn't look necessary anymore.

This revision now requires changes to proceed.Dec 13 2019, 21:18
Fabien requested review of this revision.Dec 14 2019, 08:42

D4681 is abandoned, this one use another approach and supersedes it.

deadalnix requested changes to this revision.Dec 16 2019, 14:16
deadalnix added inline comments.
src/qt/clientmodel.h
8 ↗(On Diff #14838)

Remove

This revision now requires changes to proceed.Dec 16 2019, 14:16
This revision is now accepted and ready to land.Dec 17 2019, 23:43
This revision was automatically updated to reflect the committed changes.