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

Remove QStringView's ushort support [1/3]: add opt-out

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • None

      The use of ushort as the scalar type to mean QChar dates back to C++98 when char16_t and char32_t did not exist, yet. Now that they do, use of the C++11 character types yields self-explanatory APIs and less implementation work (casts).

      The QStringView support for ushort characters was helpful in the run up to QTBUG-110403, but now is the time to retire it.

      Acceptance criteria:

      • Add a macro, say QT_NO_USHORT_STRINGS that disables QStringView's (and, by extension, QAnyStringView's and, where applicable, QString's) support for ushort as a string
      • Make sure QtBase compiles with it
      • Make sure all Qt modules compile with it
      • Make it the default in all modules
        • exception: when it makes QString BiC, we need to find a way around that (similar to removed_api.cpp)

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

            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

              Created:
              Updated:

                There are no open Gerrit changes