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

Add rvalue references of QSharedPointer cast operators

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.7
    • Core: Other
    • None

    Description

      The various cast operations of QSharedPointer would benefit from move semantics: casting a rvalue QSharedPointer doesn't need to touch the reference counter. Right now instead a copy is always taken.

      This is just FYI, I know QSharedPointer isn't getting love, and likely won't happen before QTBUG-109570 (i.e. QSharedPointer reimplemented as a wrapper around std::shared_ptr, that is, Qt 7). People should stop using QSharedPointer already, except that we expose it in APIs here and there (mostly as API flaws).

      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
              peppe Giuseppe D'Angelo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes