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

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.7
    • None
    • 8
    • 29a6cb338 (dev), be3bf632e (dev), db1ed4305 (6.9)
    • 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

      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.

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

            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

              Created:
              Updated:

                There is 1 open Gerrit change