Page MenuHomePhabricator

Use nullptr instead of 0 in various places in Qt code
ClosedPublic

Authored by deadalnix on Jul 23 2019, 16:39.

Diff Detail

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

Event Timeline

jasonbcox requested changes to this revision.Jul 23 2019, 17:07
jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
src/qt/walletview.h
39 ↗(On Diff #10405)

As far as I understand, member initializers do not impact whether or not this constructor should be explicit. What's the benefit here (and does it belong in this diff?)

This revision now requires changes to proceed.Jul 23 2019, 17:07
deadalnix added inline comments.
src/qt/walletview.h
39 ↗(On Diff #10405)

This is always explicit because there is more than one parameter.

jasonbcox added inline comments.
src/qt/walletview.h
39 ↗(On Diff #10405)

I see. And this change doesn't apply to the other constructors because the second param has a default (the constructors can still be called with one param).

This revision is now accepted and ready to land.Jul 23 2019, 18:26