From 453be6da4feba9573265ae1971b37e9609251eed Mon Sep 17 00:00:00 2001 From: Dreamstar_Zwb <1360953812@qq.com> Date: Thu, 15 Oct 2020 20:17:20 +0800 Subject: [PATCH] codingstyle modify --- android/opengl/system/egl/egl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/opengl/system/egl/egl.cpp b/android/opengl/system/egl/egl.cpp index 7ac5bf6..aadee06 100644 --- a/android/opengl/system/egl/egl.cpp +++ b/android/opengl/system/egl/egl.cpp @@ -463,13 +463,13 @@ static const char *getGLString(int glEnum) char *hostStr = NULL; if (!rcEnc) { ALOGE("rcEnc is null"); - return NULL; + return nullptr; } int n = rcEnc->rcGetGLString(rcEnc, glEnum, NULL, 0); if (n < 0) { hostStr = new char[-n+1]; if (!hostStr) { - return NULL; + return nullptr; } n = rcEnc->rcGetGLString(rcEnc, glEnum, hostStr, -n); if (n <= 0) { @@ -542,7 +542,7 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname) if (!procname) { ALOGE("procname is null"); - return NULL; + return nullptr; } // search in EGL function table -- Gitee