Compile QLatin1String with C++11
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 16 Mar 2012 16:59:43 +0000 (17:59 +0100)
committerQt by Nokia <qt-info@nokia.com>
Sat, 17 Mar 2012 10:17:58 +0000 (11:17 +0100)
commit09348c3efbfbb5713a8648988f42c2b6dc309508
tree0f607c2020136a5c8a8520f48bb88e4f8f074997
parent3abc6be68547e00cd90cfb0fd9151650fe937184
Compile QLatin1String with C++11

qstring.h: In constructor ‘QLatin1String::QLatin1String(const QByteArray&)’:
qstring.h:667:129: error: ‘const char* QByteArray::constData() const’ is not ‘constexpr’

QByteArray has a destructor and therefore cannot be used in constexpr,
so do not mark it as constexpr

Change-Id: I037e9ae73a244660923eac791cc3e0082d1d7a63
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qstring.h