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

please support nullptr for QSharedPointer

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 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

    Description

      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,

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes