Fix QString::operator=(QLatin1String) for substrings
authorKent Hansen <kent.hansen@nokia.com>
Wed, 1 Feb 2012 20:08:30 +0000 (21:08 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Feb 2012 10:10:04 +0000 (11:10 +0100)
commit4b1ba7c7928b4b326eb83e6df6f0b8fb93f2edf0
tree6bc4d32175683d8f7c1c5fd8bcc9d2b64ee0a39f
parent7edd623957b958d7d3db20772571810d7be9da85
Fix QString::operator=(QLatin1String) 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 QString::operator=(QLatin1String) work in that case.

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