Make the N parameter to the QXXXLiterals be the actual string length
authorThiago Macieira <thiago@kde.org>
Thu, 21 Jul 2011 14:33:17 +0000 (16:33 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 21 Jul 2011 16:56:02 +0000 (18:56 +0200)
commit001bd63e813cf19d1d6abbbfeb2599e6804807d5
tree5f9947b973fca9e27a9f91628ba69405a51a89a5
parent74a6fe79d999178de9d16befe7547af2d2f9f698
Make the N parameter to the QXXXLiterals be the actual string length

Before, it was the length + 1, to include the ending NUL or
U+0000. This avoids mistakes of -1 in QStringBuilder and will allow us
simpler code in the User-Defined Literal (future improvement)

Change-Id: I75c47d6c44579124888f925e240817229347dc70
Merge-request: 31
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Reviewed-on: http://codereview.qt.nokia.com/1966
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/corelib/tools/qbytearray.h
src/corelib/tools/qstring.h