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

This commit is contained in:
practicalswift
2017-08-16 17:26:07 +02:00
parent dbf6bd6ea0
commit bea8e9e66e
4 changed files with 8 additions and 7 deletions

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();