[Development] Feature Freeze Exception: QStringView
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Fri Feb 3 14:27:53 CET 2017
Il 03/02/2017 13:48, Kevin Kofler ha scritto:
> We really need a plan to deprecate implicit casts between QString and ASCII.
> They are not only the source of such inefficiencies from inexperienced or
> lazy programmers, but also of encoding-related bugs. If you need to convert
> between 8-bit encodings and QString, you should always use a function that
> specifies the correct encoding for the context (e.g. fromLocal8Bit). If your
> string is constant, you should use QStringLiteral.
This is all stuff that we already have and that nobody uses because we
fail at advertising it: QT_RESTRICTED_CAST_FROM_ASCII,
QT_NO_CAST_FROM_ASCII, QT_ASCII_CAST_WARNINGS...
Cheers,
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20170203/994ff3cb/attachment.bin>
More information about the Development
mailing list