[Development] Deprecation of QByteArray operator const char *()?
Thiago Macieira
thiago.macieira at intel.com
Fri Jan 25 21:23:49 CET 2019
On Friday, 25 January 2019 12:11:33 PST Christian Ehrlicher wrote:
> Hello,
>
> The two implicit conversions from QByteArray to const char*/void*
> (QByteArray::operator const char *() and QByteArray::operator const
> void*()) were marked as obsolete with Qt5.0 but never get decorated as
> such. This means their usage even inside QtBase is huge (I would say at
> least 70-80 locations).
> Therefore my question before I'm pushing a patch to add QT_DEPRECATED_X
> to them - is the deprecation still valid?
I'd un-deprecate them. The use to casting to char* is way too useful.
But I wasn't aware we event had a void* cast.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list