[Development] Deprecation of QByteArray operator const char *()?

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sat Jan 26 08:42:46 CET 2019


Am 26.01.2019 um 08:22 schrieb Olivier Goffart:
> On 25.01.19 21:11, 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 count 4331 uses
>
> https://code.woboq.org/data/symbol.html?root=../qt5/&ref=_ZNK10QByteArraycvPKcEv 
>
>
> That's a bit more than 70-80
I talked about QtBase, not Qt5 :)
But this even makes the un-deprecation more useful.

Christian



More information about the Development mailing list