Fix warning about using 0 as nullptr

This commit is contained in:
Laurent Montel 2020-05-01 13:02:20 +02:00
parent 3a9d7a6e9d
commit b54c57505d

View file

@ -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;
}