Don't use the gcc extension for QStringLiteral & Q_ARRAY_LITERAL
authorLars Knoll <lars.knoll@nokia.com>
Mon, 11 Jun 2012 14:08:55 +0000 (16:08 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 02:30:13 +0000 (04:30 +0200)
commit69478da0f0d1eac9389fbd9d2f0bca3d0ce306a6
treecde317ef0b995a2791db1a62e8d410cdb0101de2
parent1c86619037d837e2d9c6386d70b6b893f8456a96
Don't use the gcc extension for QStringLiteral & Q_ARRAY_LITERAL

The extension doesn't work outside of function scopes, so a
function declaration such as
void foo(const QString &str = QStringLiteral("bar"));
would fail on certain gcc versions.

Change-Id: I2971301f2859edd3fc81b95dfa5a7c15f29e395c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/corelib/tools/qarraydata.h
src/corelib/tools/qstring.h