qt5base-lts/tests/benchmarks/corelib
Kent Hansen 0678d7c43c Add QMetaType::type(QByteArray) function
QMetaType::type(const char *) requires that the string argument is
0-terminated. This new overload makes it possible to query the type
of a string with an explicit length.

In particular, QByteArrays constructed by QByteArray::fromRawData(),
for example from a substring of a normalized method signature (the
"int" part of "mySlot(int"), can now be queried without making a copy
of the string.

Also, Qt5 meta-objects represent type names as QByteArray literals,
which can be fed directly to this new QMetaType::type() overload (no
need to call strlen).

Change-Id: I60d35aa6bdc0f77e0997f98b0e30e12fd3d5e100
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-10-31 12:17:57 +01:00
..
codecs Update license headers and add new license files 2014-09-24 12:26:19 +02:00
io Merge remote-tracking branch 'origin/5.4' into dev 2014-09-29 14:08:49 +02:00
json Update license headers and add new license files 2014-09-24 12:26:19 +02: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
thread Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tools Add benchmark for QString::section() 2014-10-04 13:57:55 +02:00
corelib.pro test: Moving tst_QMimeDatabase::inheritsPerformance() test 2012-10-31 19:56:42 +01:00