Bug 784739 - Switch from NULL to nullptr in widget/android/; r=ehsan
This commit is contained in:
@@ -265,18 +265,18 @@ AndroidGraphicBuffer::DestroyBuffer()
|
||||
if (mEGLImage) {
|
||||
if (sGLFunctions.EnsureInitialized()) {
|
||||
sGLFunctions.fDestroyImageKHR(sGLFunctions.fGetDisplay(EGL_DEFAULT_DISPLAY), mEGLImage);
|
||||
mEGLImage = NULL;
|
||||
mEGLImage = nullptr;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
mEGLImage = NULL;
|
||||
mEGLImage = nullptr;
|
||||
|
||||
if (mHandle) {
|
||||
if (sGLFunctions.EnsureInitialized()) {
|
||||
sGLFunctions.fGraphicBufferDtor(mHandle);
|
||||
}
|
||||
free(mHandle);
|
||||
mHandle = NULL;
|
||||
mHandle = nullptr;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -413,7 +413,7 @@ AndroidGraphicBuffer::EnsureEGLImage()
|
||||
void* nativeBuffer = sGLFunctions.fGraphicBufferGetNativeBuffer(mHandle);
|
||||
|
||||
mEGLImage = sGLFunctions.fCreateImageKHR(sGLFunctions.fGetDisplay(EGL_DEFAULT_DISPLAY), EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, (EGLClientBuffer)nativeBuffer, eglImgAttrs);
|
||||
return mEGLImage != NULL;
|
||||
return mEGLImage != nullptr;
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -445,7 +445,7 @@ static const char* const sAllowedBoards[] = {
|
||||
"sgh-i997", // Samsung Infuse 4G
|
||||
"herring", // Samsung Nexus S
|
||||
"sgh-t839", // Samsung Sidekick 4G
|
||||
NULL
|
||||
nullptr
|
||||
};
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user