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

Remove QT_STRINGVIEW_LEVEL macro

    XMLWordPrintable

Details

    • 046a5a8f4f (qt/qtbase/dev) a905c3e683 (qt/qtbase/6.4) a905c3e683 (qt/tqtc-qtbase/6.4)

    Description

      The idea of the macro was to be able to build Qt in different levels of QStringView "immersiveness" to benchmark the impact, in particular, of replacing QString with QStringView functions instead of just overloading them.

      We never did that measurement when it could have had a meaningful effect (before 6.0) and the premiss of the macro turned out to be wrong, too: because we don't allow QStringView construction from anything that implicitly converts to QString, the QString partner overloads are still required.

      QAnyStringView fixes that particular issue, but it doesn't allow overloading with QString, so we can't have a similar macro for QAnyStringView.

      In essence, the QT_STRINGVIEW_LEVEL macro is unused and unusable, and we should eradicate it from the code base.

      Attachments

        For Gerrit Dashboard: QTBUG-100861
        # Subject Branch Project Status CR V

        Activity

          People

            cnn Qt Core & Network
            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: