diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-08-18 15:23:54 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-08-18 15:24:07 +0200 |
| commit | 9e00a625b43c86a1a25c7d8a6d0b06bd4db5904a (patch) | |
| tree | f4a6926069e5135154f150217d042a4739e61a38 /src/qt/macnotificationhandler.mm | |
| parent | Merge #11080: doc: Update build-openbsd for 6.1 (diff) | |
| parent | Document the preference of nullptr over NULL or (void*)0 (diff) | |
| download | discoin-9e00a625b43c86a1a25c7d8a6d0b06bd4db5904a.tar.xz discoin-9e00a625b43c86a1a25c7d8a6d0b06bd4db5904a.zip | |
Merge #11066: Document the preference of nullptr over NULL or (void*)0
bea8e9e Document the preference of nullptr over NULL or (void*)0 (practicalswift)
Pull request description:
Document the preference of `nullptr` over `NULL` or `(void*)0`.
After this commit:
```
$ git grep "[^A-Za-z_]NULL[^A-Za-z_]" | grep -vE '(leveldb|univalue|secp256k1|torcontrol|NULL certificates|ctaes|release-notes|patches|configure.ac|developer-notes)'
$
```
Some context:
* `NULL → nullptr` was handled in the recently merged PR #10483
* `0 → nullptr` was handled in the recently merged PR #10645
Tree-SHA512: f863096aa4eb21705910f89713ca9cc0d83c6df2147e3d3530c3e1589b96f6c68de8755dcf37d8ce99ebda3cfb69805e00eab13bf65424aaf16170e9dda3958a
Diffstat (limited to 'src/qt/macnotificationhandler.mm')
| -rw-r--r-- | src/qt/macnotificationhandler.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/macnotificationhandler.mm b/src/qt/macnotificationhandler.mm index dd3f62281..4c96d08c8 100644 --- a/src/qt/macnotificationhandler.mm +++ b/src/qt/macnotificationhandler.mm @@ -75,7 +75,7 @@ bool MacNotificationHandler::hasUserNotificationCenterSupport(void) MacNotificationHandler *MacNotificationHandler::instance() { - static MacNotificationHandler *s_instance = NULL; + static MacNotificationHandler *s_instance = nullptr; if (!s_instance) { s_instance = new MacNotificationHandler(); |