]> git.sesse.net Git - movit/blobdiff - gtest_sdl_main.cpp
Use nullptr everywhere, now that we have C++11.
[movit] / gtest_sdl_main.cpp
index 70fed134b2ad4b134787c8d26c8875b2ea95ac89..e3051ad3518a86c8c48055d00ed5b694644e32de 100644 (file)
@@ -47,10 +47,10 @@ int main(int argc, char **argv) {
                32, 32,
                SDL_WINDOW_OPENGL);
        SDL_GLContext context = SDL_GL_CreateContext(window);
-       assert(context != NULL);
+       assert(context != nullptr);
 #else
        SDL_SetVideoMode(32, 32, 0, SDL_OPENGL);
-       SDL_WM_SetCaption("OpenGL window for unit test", NULL);
+       SDL_WM_SetCaption("OpenGL window for unit test", nullptr);
 #endif
 
        int err;