qt5base-lts/tests/auto/other/collections
Giuseppe D'Angelo 601d685849 Make mid() and midRef() properly return empty, non-null objects
If we request a substring starting at the very end of the string,
QString::mid should return an empty string, not a null string.
For instance, QString("abc").mid(3, 0) used to return a null
one, while this patch makes it return an empty one. The
same thing applies to QString::midRef() and QByteArray::mid().

Change-Id: Ie9efd7a0622d429efd0fb682c19856c19e9469af
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2012-01-24 17:36:11 +01:00
..
.gitignore Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
collections.pro Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
tst_collections.cpp Make mid() and midRef() properly return empty, non-null objects 2012-01-24 17:36:11 +01:00