|
From: | John W. Eaton |
Subject: | Re: Switch to nullptr? |
Date: | Fri, 28 Apr 2017 18:58:22 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
On 04/28/2017 06:13 PM, Rik wrote:
There are one or two places left in the code where I couldn't tell whether switching would cause a problem so I left them alone. # This is wrapped in a Windows-only #ifdef. I don't know what Microsoft lib will return corefcn/sysdep.cc:188: if (hShell != NULL)
This could just be if (hShell)
dldfcn/__osmesa_print__.cc:126: OSMesaContext ctx = OSMesaCreateContextExt (OSMESA_RGBA, 16, 0, 0, NULL);
I always converted any uses of NULL in C++ code to just be 0. The function has to have a prototype and 0 should be fine.
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |