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

The pointer is not initialized with nullptr

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • 81a921162 (dev), 6d8c08459 (6.8), f16885719 (tqtc/lts-6.5)

    Description

      In qt/qtmultimedia/examples/multimedia/player/qmediaplaylist.h, there is a line that this.

      QMediaPlaylistPrivate *d_ptr;

      In qt/qtmultimedia/examples/multimedia/player/qmediaplaylist_p.h there is a line that this.

      QMediaPlaylist *q_ptr; 

       

      The pointer is not initialized, so it would be better to initialize the pointer.

      QMediaPlaylistPrivate *d_ptr = nullptr;
      QMediaPlaylist *q_ptr = nullptr; 

      Attachments

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

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            add-uos hongyuan zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes