Details
-
Suggestion
-
Resolution: Done
-
P4: Low
-
5.15.0
-
None
-
-
f3c402a6df0060dc4d0f3013c5d1fa31960dba7c (qt/qtbase/dev) 372d48bf4f022c8113c29abe44e9610c74d9087a (qt/qtbase/5.15)
Description
Re: https://doc.qt.io/qt-5/qopenglfunctions.html#details
The example code contains
MyGLWindow(QScreen *screen = 0);
I suggest changing that to
MyGLWindow(QScreen *screen = nullptr);
A pointer should not be set to an int. (C++11)
Attachments
For Gerrit Dashboard: QTBUG-84859 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
303658,2 | Doc snippets: Use nullptr instead of 0 literal | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |
303718,3 | Doc snippets: Use nullptr instead of 0 literal | dev | qt/qtbase | Status: MERGED | +2 | 0 |