Document the preference of nullptr over NULL or (void*)0

This commit is contained in:
practicalswift committed 2017-08-18 09:51:00 +02:00
1 parent dbf6bd6ea0
commit bea8e9e66e
4 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -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();