diff --git a/cocos/base/ccUtils.cpp b/cocos/base/ccUtils.cpp index 6ddb4451b6..f02c76d6b4 100644 --- a/cocos/base/ccUtils.cpp +++ b/cocos/base/ccUtils.cpp @@ -164,7 +164,7 @@ double gettime() long long getTimeInMilliseconds() { struct timeval tv; - gettimeofday (&tv, NULL); + gettimeofday (&tv, nullptr); return tv.tv_sec * 1000 + tv.tv_usec / 1000; }