Fix operator==(QLatin1String, QLatin1String) and friends for substrings
authorKent Hansen <kent.hansen@nokia.com>
Wed, 1 Feb 2012 16:37:02 +0000 (17:37 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Feb 2012 10:10:04 +0000 (11:10 +0100)
commitec9833388f514ac8050cc945e494e448dae545ea
tree5b67954fe2a6bf620a42ec745ec795842598347e
parent307c03497301015c418d4bfe462b14ed9cdf2f1b
Fix operator==(QLatin1String, QLatin1String) and friends for substrings

QLatin1String now has a constructor that takes explicit length, which
makes it possible to create a QLatin1String that isn't null-terminated.
Made the QLatin1String comparison operators work in that case.

Change-Id: I234ba851e67a6f5cfbb46fb6f0b22623ce40be28
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/tools/qstring.h
tests/auto/corelib/tools/qstring/tst_qstring.cpp