From 33b1ad63d51dfc1701b88483209d7342e00a3e82 Mon Sep 17 00:00:00 2001 From: Dreamstar_Zwb <1360953812@qq.com> Date: Sat, 17 Oct 2020 16:12:04 +0800 Subject: [PATCH] codestyle 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 aadee06..7ac5bf6 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 nullptr; + return NULL; } int n = rcEnc->rcGetGLString(rcEnc, glEnum, NULL, 0); if (n < 0) { hostStr = new char[-n+1]; if (!hostStr) { - return nullptr; + return NULL; } 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 nullptr; + return NULL; } // search in EGL function table -- Gitee