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

hello_speech example zero instead of nullptr

    XMLWordPrintable

Details

    • All
    • aec9bb44af76b5e63afec151a36d057fa738aca0 (qt/qtspeech/dev) f02333202ab28282b4f5393e656ad83ba43ef6a0 (qt/qtspeech/5.15)
    • Da Vinci sprint 14

    Description

      hello_speech example: mainwindow.cpp

      QTextToSpeech *m_speech;
      MainWindow::MainWindow(QWidget *parent)
           : QMainWindow(parent),
           m_speech(0)  // pointer initialized to zero
      

       Should not this pointer be initialized to nullptr?

          m_speech(nullptr)
      

      https://code.qt.io/cgit/qt/qtspeech.git/tree/examples/speech/hello_speak/mainwindow.cpp?h=5.15

      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