NO_CAST policy for new kopete code

Pali Rohár <[email protected]>
Newsgroups gmane.comp.kde.devel.kopete
Message-ID <201507202145.09549@pali>
Hello,

I would be happy if Kopete could be compiled with defines:

 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII

It disables automatic conversion between C strings char* (which are in
unknown/any encoding) and QString (which is unicode). It prevents that
mess of 8bit encodings (Utf-8, Latin1, ...) and ensure that caller
correctly specify encoding of/for C char* strings.

See more on:

http://doc.qt.io/qt-4.8/qstring.html#converting-between-8-bit-strings-and-unicode-strings

I know it is hard to fix all Kopete code to compiles with above NO_CAST
flags, but what about policy to enforce that flags for all new code?

-- 
Pali Rohár
[email protected]

_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAlWtT8UACgkQi/DJPQPkQ1JSmQCfWT6vmGdrFC0lfi0Q/1O37uld
OuoAnimOu3Ff0T86COo3lNUEmy1RwzN5
=u44Z
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.