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 | [email protected] | Senior Software Engineer KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908 KDAB - Qt, C++ and OpenGL Experts
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
