qwindowswindow: fix return nullptr

fix return nullptr rather than 0

Change-Id: Ic8e04e5b8bc732a7ffba5a708caee4326abf7168
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Gong Weia 2021-09-13 10:54:23 +08:00
parent 05870db7d0
commit a2ab67c8b2

View File

@ -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) {