Refactoring: replace NULL by nullptr for pointers (2nd CL).
This CL mainly handles the pointer comparisons (== or !=).
BUG=angleproject:2001
Change-Id: I25ac3b61032e7ad91459a1c6541cadc87cf9b160
Reviewed-on: https://chromium-review.googlesource.com/483935
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/src/tests/gl_tests/BufferDataTest.cpp b/src/tests/gl_tests/BufferDataTest.cpp
index 8a821fd..adcfc4a 100644
--- a/src/tests/gl_tests/BufferDataTest.cpp
+++ b/src/tests/gl_tests/BufferDataTest.cpp
@@ -149,11 +149,11 @@
GLsizei allocSize = std::numeric_limits<GLsizei>::max() >> 2;
uint8_t *data = nullptr;
- while (data == NULL && allocSize >= 4)
+ while (data == nullptr && allocSize >= 4)
{
data = new (std::nothrow) uint8_t[allocSize];
- if (data == NULL)
+ if (data == nullptr)
{
allocSize >>= 1;
}