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
    • 29a6cb338 (dev)
    • Foundation PM Prioritized, Foundation Sprint 108, Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111, Foundation Sprint 112, Foundation Sprint 113, Foundation Sprint 114, Foundation Sprint 115, Foundation Sprint 116, Foundation Sprint 117

    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

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

          Activity

            People

              ahmad.samir Ahmad Samir
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are 2 open Gerrit changes