Go to file
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
bin Ensure the directory exists to receive a deprecated header. 2012-02-20 13:25:46 +01:00
config.tests Clean up default arch setting on Mac OS X 2012-02-17 11:44:29 +01:00
dist Drop file-engine abstraction from public API 2012-02-22 00:07:31 +01:00
doc/src Remove QAccessibleInterface::navigate() 2012-02-20 11:46:16 +01:00
examples Test for QT_NO_SSL instead of QT_NO_OPENSSL 2012-02-21 15:28:40 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Give the compile flags an EXECUTABLE_ prefix. 2012-02-21 22:31:00 +01:00
qmake QByteArray: deprecate QT_NO_CAST_FROM_BYTEARRAY-protected operators 2012-02-26 09:14:11 +01:00
src QByteArray: deprecate QT_NO_CAST_FROM_BYTEARRAY-protected operators 2012-02-26 09:14:11 +01:00
tests Inline and mark as deprecated images's serialNumber() 2012-02-26 02:23:01 +01:00
tools don't attempt to build host tools which are gone from qtbase 2012-02-20 19:51:41 +01:00
util optimize QString::toLower()/toUpper() for special cases, step 2 2012-02-21 22:31:00 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Correct pkg-config usage to respect sysroot 2012-02-22 00:07:31 +01:00
configure.bat bootstrap configure.exe on windows 2012-02-16 01:56:21 +01:00
header.BSD Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.FDL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL-ONLY Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Add configure, sync.profile, and header.* to OTHER_FILES in qtbase.pro 2012-02-08 07:40:03 +01:00
sync.profile Add qprocessordetection.h 2012-02-08 12:33:11 +01:00