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 /platform/darwin | |
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 'platform/darwin')
-rw-r--r-- | platform/darwin/src/headless_view_cgl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/headless_view_cgl.cpp b/platform/darwin/src/headless_view_cgl.cpp index a4f809a250..dc58463b5d 100644 --- a/platform/darwin/src/headless_view_cgl.cpp +++ b/platform/darwin/src/headless_view_cgl.cpp @@ -19,7 +19,7 @@ gl::glProc HeadlessView::initializeExtension(const char* name) { } void HeadlessView::createContext() { - CGLError error = CGLCreateContext(display->pixelFormat, NULL, &glContext); + CGLError error = CGLCreateContext(display->pixelFormat, nullptr, &glContext); if (error != kCGLNoError) { throw std::runtime_error(std::string("Error creating GL context object:") + CGLErrorString(error) + "\n"); } |