Commit b54c5750 authored by Laurent Montel's avatar Laurent Montel 😁

Fix warning about using 0 as nullptr

parent 3a9d7a6e
......@@ -111,7 +111,7 @@ GLuint SharingPlatformContext::defaultFramebufferObject(QPlatformSurface *surfac
void SharingPlatformContext::create()
{
if (config() == 0) {
if (!config()) {
qCWarning(KWIN_QPA) << "Did not get an EGL config";
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment