Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.2.4, 6.3.1, 6.4.0 Beta1, 6.5
-
None
-
5
-
Foundation PM Prioritized
Description
No-one ported QStringRef to qsizetype when QString was ported away from int, so now we're left with a QStringRef that has int size and offset members, and thus can't reference all QStrings. The only thing we can do, at this point, is document it and Q_ASSERT() when trying to construct a QStringRef that would reference a portion of QString outside the first 2Gi characters.
Technically speaking, we need to widen the setters to accept qsizetype (to prevent narrowing at the call site), but reject offset/length pairs that are not confined to the first 2Gi of characters.
Attachments
Issue Links
- blocks
-
QTBUG-104855 Finish migration to qsizetype [Qt5Compat: <rest>]
-
- Open
-