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

Add QT_NO_USHORT_STRINGS and make all of Qt build with it set.

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.7
    • None
    • 8
    • Foundation Sprint 108, Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111

    Description

      ushort is what old pre-C++11 code used when it needed a primitive type instead of QChar. Since C++11, we have the superior char16_t, clearly a character type and not (also) an integer, so the vast majority of code has been ported already. Yet, QStringView (and, by extension, QAnyStringView) still accept ushort* as strings. Add an opt-out macro and make sure Qt compiles with it.

      Attachments

        Issue Links

          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:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes