Add missing QT_NO_CAST_FROM_ASCII
authorKonstantin Ritt <ritt.ks@gmail.com>
Wed, 23 May 2012 00:57:19 +0000 (03:57 +0300)
committerQt by Nokia <qt-info@nokia.com>
Fri, 1 Jun 2012 01:16:17 +0000 (03:16 +0200)
commitf19fbcf4e3c531cdbaf82ea32da2210bea64cb1c
tree7c7e6a7f0e8d1334387d60d35740f7729159c4c8
parent72bd1c3228c8c816be74ab0432028424c688b979
Add missing QT_NO_CAST_FROM_ASCII

to QLatin1String's compare operators that takes const char *s or QByteArray.
Such comparison leads to a potential misuse since QByteArray could contain any arbitrary data
in any arbitrary encoding and QLatin1String is used to only contain strings in UTF-8 -
they are just a different beasts aimed for different purposes, and since QT_NO_CAST_*_ASCII
disallow indirect conversions and require the user to know what he's doing,
let's be consistent here too.

Change-Id: I9bf5f326495157db8a6af064d6154961b7861a7e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qstring.h