Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84859

Use of '0' instead of nullptr

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P4: Low
    • 5.15.1
    • 5.15.0
    • Documentation
    • None
    • All
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            paulwicking Paul Wicking
            psnarf Henry Pfeil
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes