qt5base-lts/qmake
Marc Mutz 8397a44bed QByteArray: deprecate QT_NO_CAST_FROM_BYTEARRAY-protected operators
The QByteArray::operator const {char,void}*() implicit
conversions are a source of subtle bugs, so they right-
fully can be disabled with QT_NO_CAST_FROM_BYTEARRAY.

  const char *d = qstring.toLatin1(); // implicit conversion
  while ( d ) // oops: d points to freed memory
     // ...

But almost no-one ever enabled this macros in the wild
and many were bitten by these implicit conversions, so
this patch deprecates them.

I would have liked to remove them completely, but there
are just too many occurrences even in Qt itself to hope
to find all conditionally-compiled code that uses these.

Also fixes all code that needs to compile under
QT_NO_DEPRECATED (in qmake/, src/tools/).

I984706452db7d0841620a0f64e179906123f3849 separately
deals with the bulk of changes in src/ and examples/.

Depends on I5ea1ad3c96d9e64167be53c0c418c7b7dba51f68.

Change-Id: I8d47e6c293c80f61c6288c9f8d42fda41afe2267
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2012-02-26 09:14:11 +01:00
..
generators QByteArray: deprecate QT_NO_CAST_FROM_BYTEARRAY-protected operators 2012-02-26 09:14:11 +01:00
cachekeys.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
CHANGES Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
main.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
Makefile.unix Allow customization of qDebug output at runtime 2012-02-09 18:11:21 +01:00
Makefile.win32 lower qmake optimization level on msvc 2012-02-10 15:23:01 +01:00
Makefile.win32-g++ Allow customization of qDebug output at runtime 2012-02-09 18:11:21 +01:00
Makefile.win32-g++-sh Allow customization of qDebug output at runtime 2012-02-09 18:11:21 +01:00
meta.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
meta.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
option.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
option.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
project.cpp QByteArray: deprecate QT_NO_CAST_FROM_BYTEARRAY-protected operators 2012-02-26 09:14:11 +01:00
project.h make resolution of default spec less inefficient 2012-02-21 22:31:00 +01:00
property.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
property.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmake_pch.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmake.pri Drop file-engine abstraction from public API 2012-02-22 00:07:31 +01:00
qmake.pro qmake: remove symbian support 2011-11-07 13:26:41 +01:00