diff --git a/cocos/platform/CCPlatformMacros.h b/cocos/platform/CCPlatformMacros.h index 9e00d7f4d1..d758e74c13 100644 --- a/cocos/platform/CCPlatformMacros.h +++ b/cocos/platform/CCPlatformMacros.h @@ -50,8 +50,8 @@ static __TYPE__* create() \ else \ { \ delete pRet; \ - pRet = NULL; \ - return NULL; \ + pRet = nullptr; \ + return nullptr; \ } \ }