Ignore:
Timestamp:
Feb 26, 2013, 2:43:45 PM (7 years ago)
Author:
sam
Message:

base: start removing occurrences of NULL on our long journey to nullptr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/eglapp.cpp

    r2301 r2506  
    7979    data->egl_dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY);
    8080#   else
    81     data->dpy = XOpenDisplay(NULL);
    82     if (data->dpy == NULL)
     81    data->dpy = XOpenDisplay(nullptr);
     82    if (data->dpy == nullptr)
    8383    {
    8484        Log::Error("cannot connect to X server\n");
     
    116116    }
    117117
    118     if (!eglInitialize(data->egl_dpy, NULL, NULL))
     118    if (!eglInitialize(data->egl_dpy, nullptr, nullptr))
    119119    {
    120120        Log::Error("cannot initialize EGL\n");
     
    188188
    189189    data->egl_surf = eglCreateWindowSurface(data->egl_dpy, ecfg,
    190                                             &data->nativewindow, NULL);
     190                                            &data->nativewindow, nullptr);
    191191#   else
    192192    data->egl_surf = eglCreateWindowSurface(data->egl_dpy, ecfg,
    193193                                            (EGLNativeWindowType)data->win,
    194                                             NULL);
     194                                            nullptr);
    195195#   endif
    196196    if (data->egl_surf == EGL_NO_SURFACE)
Note: See TracChangeset for help on using the changeset viewer.