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

Port QObject::setObjectName() to QAnyStringView

    XMLWordPrintable

Details

    • 8
    • 9da4c6bfb7 (qt/qtbase/dev) 9da4c6bfb7 (qt/tqtc-qtbase/dev)
    • Team Two Foundation Sprint 52, Team B Foundation Sprint 53

    Description

      QObject::setObjectName() is typically called with a literal string. This currently means that a temporary QString is created and destroyed for each call of the function, of which there can be as many as one per QObject object. By porting the function to QAnyStringView, we can avoid said temporary QString, and vary the storage independently from the interface type (e.g., the objectName may be stored in a simple malloc'ed buffer, or a u16string (though it's SSO buffer is rather small) or QVLA).

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes