-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
21
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.
| For Gerrit Dashboard: QTBUG-103533 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 427877,2 | QScopedArrayPointer: port to qsizetype | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 430541,2 | QOffsetStringArray: fix size_t/qsizetype mismatch | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 430708,1 | QOffsetStringArray: fix size_t/qsizetype mismatch | 6.4 | qt/qtbase | Status: ABANDONED | 0 | 0 |
| 430712,1 | QOffsetStringArray: fix size_t/qsizetype mismatch | 6.3 | qt/qtbase | Status: ABANDONED | 0 | 0 |
| 430725,1 | QOffsetStringArray: fix size_t/qsizetype mismatch | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: ABANDONED | 0 | 0 |