diff options
author | Yi Kong <yikong@google.com> | 2018-07-18 10:07:09 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2018-07-18 11:12:41 -0700 |
commit | 48a6cd21e6d88654068f0072f08f6d6c165c60ac (patch) | |
tree | 600f40c10206fd69f8c16db19d734048669cd921 /opengl/tests/lib/WindowSurface.cpp | |
parent | 3fe2f3e97eb6e773c0f99a4af8c9d6fb00b366c9 (diff) |
[opengl] Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning.
Test: m
Bug: 68236239
Change-Id: Ia2f91707b277954d5105f6fdb489caad9ef8848c
Diffstat (limited to 'opengl/tests/lib/WindowSurface.cpp')
-rw-r--r-- | opengl/tests/lib/WindowSurface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/tests/lib/WindowSurface.cpp b/opengl/tests/lib/WindowSurface.cpp index 2b76279801..b06422a98c 100644 --- a/opengl/tests/lib/WindowSurface.cpp +++ b/opengl/tests/lib/WindowSurface.cpp @@ -57,7 +57,7 @@ WindowSurface::WindowSurface() { sp<SurfaceControl> sc = surfaceComposerClient->createSurface( String8("Benchmark"), width, height, PIXEL_FORMAT_RGBX_8888, ISurfaceComposerClient::eOpaque); - if (sc == NULL || !sc->isValid()) { + if (sc == nullptr || !sc->isValid()) { fprintf(stderr, "Failed to create SurfaceControl\n"); return; } |