diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-12 13:01:45 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-13 23:32:05 +0300 |
commit | 92f605df326ac4b1f4dd65928d6350b97eea6096 (patch) | |
tree | dbabc7d20fdb447efbd3d7d7025ff747cd17bf9e /test/api | |
parent | 9142c447e82c002a68fbf333f97508dba0e0e50c (diff) | |
download | qtlocation-mapboxgl-92f605df326ac4b1f4dd65928d6350b97eea6096.tar.gz |
[tidy] Check modernize-use-nullptr
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
Diffstat (limited to 'test/api')
-rw-r--r-- | test/api/custom_layer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/api/custom_layer.cpp b/test/api/custom_layer.cpp index e0be341c4b..90c94aaea4 100644 --- a/test/api/custom_layer.cpp +++ b/test/api/custom_layer.cpp @@ -56,7 +56,7 @@ public: MBGL_CHECK_ERROR(glUseProgram(program)); MBGL_CHECK_ERROR(glBindBuffer(GL_ARRAY_BUFFER, buffer)); MBGL_CHECK_ERROR(glEnableVertexAttribArray(a_pos)); - MBGL_CHECK_ERROR(glVertexAttribPointer(a_pos, 2, GL_FLOAT, GL_FALSE, 0, NULL)); + MBGL_CHECK_ERROR(glVertexAttribPointer(a_pos, 2, GL_FLOAT, GL_FALSE, 0, nullptr)); MBGL_CHECK_ERROR(glDisable(GL_STENCIL_TEST)); MBGL_CHECK_ERROR(glDisable(GL_DEPTH_TEST)); MBGL_CHECK_ERROR(glDrawArrays(GL_TRIANGLE_STRIP, 0, 4)); |