diff options
author | Paul Wicking <paul.wicking@qt.io> | 2020-06-10 07:22:27 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2020-06-10 07:47:37 +0200 |
commit | f3c402a6df0060dc4d0f3013c5d1fa31960dba7c (patch) | |
tree | 9d6a8815d703f4c8d7335fc03f1c66826fdc862f /src/gui/doc/snippets/code | |
parent | c208b648f91da5139b8eda0c239201768f9d4059 (diff) |
Doc snippets: Use nullptr instead of 0 literal
Also mark constructors explicit, where applicable.
Pick-to: 5.15
Fixes: QTBUG-84859
Change-Id: I145d366d854fd6b4373bcc23d0b880d6361d9014
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/doc/snippets/code')
-rw-r--r-- | src/gui/doc/snippets/code/src_gui_opengl_qopenglfunctions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/doc/snippets/code/src_gui_opengl_qopenglfunctions.cpp b/src/gui/doc/snippets/code/src_gui_opengl_qopenglfunctions.cpp index e072c110f2..e4255107d3 100644 --- a/src/gui/doc/snippets/code/src_gui_opengl_qopenglfunctions.cpp +++ b/src/gui/doc/snippets/code/src_gui_opengl_qopenglfunctions.cpp @@ -53,7 +53,7 @@ { Q_OBJECT public: - MyGLWindow(QScreen *screen = 0); + explicit MyGLWindow(QScreen *screen = nullptr); protected: void initializeGL(); |