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

Finish migration to qsizetype [qtbase/src/corelib/text]

    XMLWordPrintable

Details

    • 21
    • 334c27dad1 (qt/qtbase/dev) 334c27dad1 (qt/tqtc-qtbase/dev) e8e91ef35c (qt/qtbase/6.4) e8e91ef35c (qt/tqtc-qtbase/6.4) e8e91ef35c (qt/tqtc-qtbase/6.4.0) 5018ab86be (qt/tqtc-qtbase/6.2) d41c841e07 (qt/qtbase/6.3) d41c841e07 (qt/tqtc-qtbase/6.3)
    • Foundation Sprint 61, Foundation Sprint 62, Foundation Sprint 63, Foundation Sprint 64, Foundation Sprint 65

    Description

      Let's be honest: the change from int to qsizetype sizes in Qt 6.0 was more than rushed. Half the API and a good chunk of implementation code is still using int when it should be using qsizetype, and we have been papering over this issue by making qMin() allow mixed-type arguments and, apparently, by removing the annoying MSVC warnings that, in Qt 5, so nicely pin-pointed all these implicit conversions as hard errors.

      There were several real bugs in e.g. the QBuffer code corresponding to int/qsizetype, so there's probably more.

      Acceptance criterium: every int has been inspected and, if needed, ported to qsizetype. Unfortunately, relying on compiler warnings isn't enough, as explicit casts won't raise warnings, but need to be ported nonetheless.

      Attachments

        Issue Links

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

          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:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes