diff options
author | Gong Weia <gongweia@uniontech.com> | 2021-09-13 10:54:23 +0800 |
---|---|---|
committer | Gong Weia <gongweia@uniontech.com> | 2021-09-28 21:51:26 +0800 |
commit | a2ab67c8b24b772f2e1e37ecc00b67014f0fa255 (patch) | |
tree | 6a1d34383fe74b5542ac02e508def178c4dd01a7 /src/plugins/platforms/windows/qwindowswindow.cpp | |
parent | 05870db7d0606e0a64115a523bf1366137f34700 (diff) |
qwindowswindow: fix return nullptr
fix return nullptr rather than 0
Change-Id: Ic8e04e5b8bc732a7ffba5a708caee4326abf7168
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowswindow.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowswindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |