QT_USE_QSTRINGBUILDER to fix source compatibility
authorOlivier Goffart <olivier.goffart@nokia.com>
Fri, 6 May 2011 11:13:42 +0000 (13:13 +0200)
committerOlivier Goffart <olivier.goffart@nokia.com>
Wed, 18 May 2011 13:17:17 +0000 (15:17 +0200)
commitb57a7e6994abdab2b7ff7c7fc19549d66dbf598f
treeb429f1931a097a534b0a5291a9ccc2cbd2ccf8b8
parent66f264f1153436cc0ace72e7ba16e077a284311c
QT_USE_QSTRINGBUILDER to fix source compatibility

In 4.8 we added support for using StringBuilder with QByteArray.
But this is breaking source compatibility for people that used
QT_USE_FAST_OPERATOR_PLUS in Qt 4.7. So we introduce a new macro

Notice that QT_USE_FAST_CONCATENATION was not working without
QT_USE_FAST_OPERATOR_PLUS, so we remove the checking of that macro.

Reviewed-by: joao
(cherry picked from commit 8447f5616be731d78081f326bb9cb3f5aa9087a4)
doc/src/snippets/qstring/stringbuilder.cpp
src/corelib/tools/qbytearray.h
src/corelib/tools/qstring.cpp
src/corelib/tools/qstring.h
src/corelib/tools/qstringbuilder.h
src/qbase.pri
tests/auto/qstringbuilder1/tst_qstringbuilder1.cpp
tests/auto/qstringbuilder2/tst_qstringbuilder2.cpp
tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp
tests/auto/qstringbuilder4/tst_qstringbuilder4.cpp