Document the preference of nullptr over NULL or (void*)0
This commit is contained in:
1 parent
dbf6bd6ea0
commit
bea8e9e66e
4 files changed
+8
-7
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user