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

Add rvalue references of QSharedPointer cast operators

XMLWordPrintable

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

      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).

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

            thiago Thiago Macieira
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes