Unify QLatin1String and QLatin1Literal
authorLars Knoll <lars.knoll@nokia.com>
Mon, 4 Jul 2011 10:21:06 +0000 (12:21 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 7 Jul 2011 10:30:00 +0000 (12:30 +0200)
commitf4c07fe72168778cd6ea5a6c07fb6add91b2e3d0
tree866cf043306325db0de2ee7dcf690fae32990bb1
parentee85e9cc10bc6874c892b09fa54b5dbd79854069
Unify QLatin1String and QLatin1Literal

Unify the two classes and get rid of one
TODO item for Qt 5.

Using strlen in the constructor of QLatin1String works,
as the compiler can do the calculation at compile time.

Change-Id: I59d98c71a34b86d4211fa0d8cfd40b7d612c5a78
Reviewed-on: http://codereview.qt.nokia.com/1219
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
src/corelib/tools/qstring.cpp
src/corelib/tools/qstring.h
src/corelib/tools/qstringbuilder.cpp
src/corelib/tools/qstringbuilder.h