Details
-
Technical task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
-
Foundation PM Staging
Description
There is an implicit conversion operator from QByteArray to `const char *`, which is dangerous API as `const char *` is a very common type in e.g. C Library system native methods on Linux. And really no type should be implicitly convertible to `const char *`.
This operator can be disabled by defining The QT_NO_CAST_FROM_BYTEARRAY macro, so the goal is to fix build issues when that macro is defined.
Attachments
Issue Links
- depends on
-
QTBUG-133235 QMetaObject: add overloads that take a view instead of `const char *`
-
- Reported
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-133234 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
634566,1 | WIP: QtCore: build with QT_NO_CAST_FROM_BYTEARRAY | dev | qt/qtbase | Status: NEW | -2 | 0 |