qt5base-lts/tests/auto/corelib
Thiago Macieira 294c914eb6 Add rvalue-ref qualified {QString,QByteArray}::{simplified,trimmed}
Of the const overloads that return a QString or a QByteArray, this is
one that gains the most benefit. It happens often in constructs like:

    QByteArray s = x.readLine().trimmed();

After this change, 41 out of 103 calls to trimmed become rvalue in Qt
and 272 out of 441 in Qt Creator. For simplified, the numbers are 27 out
of 69 in Qt and 10 out of 19 in Qt Creator.

Other candidates are left, right, and mid, but there are exactly zero
uses of left, right and mid on an xvalue QString or QByteArray in Qt.

I'm being lazy and using qstring_compat.cpp to store the QByteArray
compat methods.

Change-Id: I4e410fc1adc4c761bb07cc3d43b348a65befa9f6
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2014-11-02 20:51:57 +01:00
..
animation Update license headers and add new license files 2014-09-24 12:26:19 +02:00
codecs Fix doc about the list of supported codecs 2014-10-24 22:23:58 +02:00
global Use Q_DECL_RELAXED_CONSTEXPR in QFlags 2014-10-31 09:54:15 +01:00
io Further limit the sparse file testing on OS X 2014-10-22 23:00:41 +02:00
itemmodels Update license headers and add new license files 2014-09-24 12:26:19 +02:00
json Add conversion between QVariantHash and QJsonObject 2014-10-30 12:14:42 +01:00
kernel Add QMetaType::type(QByteArray) function 2014-10-31 12:17:57 +01:00
mimetypes Update license headers and add new license files 2014-09-24 12:26:19 +02:00
plugin Update license headers and add new license files 2014-09-24 12:26:19 +02:00
statemachine tst_QState: fix memleaks 2014-10-19 13:18:12 +02:00
thread tst_QThreadPool: fix memleak 2014-10-19 13:18:07 +02:00
tools Add rvalue-ref qualified {QString,QByteArray}::{simplified,trimmed} 2014-11-02 20:51:57 +01:00
xml Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00