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

QByteArray: add missing STL-style assign()

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      See epic for more details.

      See QTBUG-106197 for the agreed-upon overload set.

      Acceptance criteria:

      • QByteArray has an assign() overload set following QTBUG-106197
      • For a QByteArray that is not shared and has sufficient capacity() to hold the result of the operation, these functions do not allocate additional memory.
      • Otherwise, the moral equivalent of *this = QByteArray(~~~args~~~) (even if QByteArray cannot actually be constructed using ~~~args~~~.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              cnn Qt Core & Network
              Reporter:
              mmutz Marc Mutz
              PM Owner:
              Vladimir Minenko Vladimir Minenko
              RnD Owner:
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes