Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.7
-
None
-
8
-
29a6cb338 (dev)
-
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
Description
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.
Attachments
Issue Links
- resulted from
-
QTBUG-124365 Port QString::arg() to QAnyStringView
- In Review
Gerrit Reviews
For Gerrit Dashboard: QTBUG-125871 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
598957,14 | QString: add {setUtf16,setUnicode}(const char16_t*) overloads | dev | qt/qtbase | Status: NEW | +1 | 0 |
598958,11 | Add QT_NO_USHORT_STRINGS | dev | qt/qtbase | Status: NEW | +1 | 0 |