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

please support nullptr for QSharedPointer

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 5.8
    • 5.6.0
    • Core: QtConcurrent
    • None
    • Qt 5.6.0 for Windows 32-bit (MinGW 4.9.2, 1.0 GB)

    • 8026dc6f361b31e36344a3147aac308620287518

      shared_ptr<QObject> test()

      { return nullptr;//good }

      QSharedPointer<QObject> test()

      { return nullptr;//error }

      when i use c++'s shared_ptr as return value, i can return nullptr directly, but when i use QSharedPointer as return value, i can't reeturn nullptr directly,

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

            thiago Thiago Macieira
            johnff johnff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes