From a2ab67c8b24b772f2e1e37ecc00b67014f0fa255 Mon Sep 17 00:00:00 2001 From: Gong Weia Date: Mon, 13 Sep 2021 10:54:23 +0800 Subject: [PATCH] qwindowswindow: fix return nullptr fix return nullptr rather than 0 Change-Id: Ic8e04e5b8bc732a7ffba5a708caee4326abf7168 Reviewed-by: Oliver Wolff --- src/plugins/platforms/windows/qwindowswindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index a65ac482b23..bbbf261273c 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) {