Bug 784739 - Switch from NULL to nullptr in widget/android/; r=ehsan

This commit is contained in:
Birunthan Mohanathas
2013-10-10 16:42:52 -04:00
parent 9c97f8fe32
commit c4438f4272
9 changed files with 75 additions and 75 deletions

View File

@@ -17,7 +17,7 @@ AndroidDirectTexture::AndroidDirectTexture(uint32_t width, uint32_t height, uint
, mWidth(width)
, mHeight(height)
, mFormat(format)
, mPendingReallocBuffer(NULL)
, mPendingReallocBuffer(nullptr)
{
mFrontBuffer = new AndroidGraphicBuffer(width, height, usage, format);
mBackBuffer = new AndroidGraphicBuffer(width, height, usage, format);
@@ -27,12 +27,12 @@ AndroidDirectTexture::~AndroidDirectTexture()
{
if (mFrontBuffer) {
delete mFrontBuffer;
mFrontBuffer = NULL;
mFrontBuffer = nullptr;
}
if (mBackBuffer) {
delete mBackBuffer;
mBackBuffer = NULL;
mBackBuffer = nullptr;
}
}
@@ -46,7 +46,7 @@ AndroidDirectTexture::ReallocPendingBuffer()
// It is assumed that mLock is already acquired
if (mPendingReallocBuffer == mBackBuffer) {
mBackBuffer->Reallocate(mWidth, mHeight, mFormat);
mPendingReallocBuffer = NULL;
mPendingReallocBuffer = nullptr;
}
}