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

The pointer is not initialized with nullptr

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.5.8, 6.8.1, 6.9.0 FF
    • 6.4
    • Multimedia
    • None
    • Android
    • 36e66df6a (dev), c861d3233 (6.8), ed3b2dbe6 (tqtc/lts-6.5)
    • Multimedia wk 39-40

      In qtmultimedia/src/plugins/multimedia/android/audio/qandroidaudiodecoder_p.h, there is a line that this. I found it since version 6.3.3.

      QIODevice *m_device = nullptr;
      Decoder *m_decoder;

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

      QIODevice *m_device = nullptr; 
      Decoder *m_decoder = nullptr;

      Moreover, this is not error, in  qtmultimedia/src/plugins/multimedia/android/audio/qandroidaudiodecoder.cpp

      {}the ** _m_decoder_ has been initialized in the constructor.

      QAndroidAudioDecoder::QAndroidAudioDecoder(QAudioDecoder *parent)    
         : QPlatformAudioDecoder(parent),     
           m_decoder(new Decoder() )
      { 
      //....
      }

       

       

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

            padubsky Pavel Dubsky
            add-uos hongyuan zhang
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes