diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index a65ac482b2..bbbf261273 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -3027,7 +3027,7 @@ void *QWindowsWindow::surface(void *nativeConfig, int *err) #elif defined(QT_NO_OPENGL) Q_UNUSED(err); Q_UNUSED(nativeConfig); - return 0; + return nullptr; #endif #ifndef QT_NO_OPENGL if (!m_surface) {