summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearray.h
diff options
context:
space:
mode:
authorMorten Sorvig <morten.sorvig@nokia.com>2012-06-13 10:01:54 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-14 03:03:38 +0200
commitbfca0a1bb65851254156e459cc3ae76fdababf9c (patch)
treedba2fe56f6281a3fbef703e575d121ddda0e4b48 /src/corelib/tools/qbytearray.h
parent3e9c45c4cc0362a8fba319677cd2735e7eeab400 (diff)
Compile.
Expressions containing "reinterpret_cast" are not constant expressions according to C++11 rules. Change-Id: Id97729f184983e5bdda180b99cfbe27e2768e09e Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qbytearray.h')
-rw-r--r--src/corelib/tools/qbytearray.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qbytearray.h b/src/corelib/tools/qbytearray.h
index 489f5f2fb3..82675e00e3 100644
--- a/src/corelib/tools/qbytearray.h
+++ b/src/corelib/tools/qbytearray.h
@@ -374,7 +374,7 @@ public:
int length() const { return d->size; }
bool isNull() const;
- Q_DECL_CONSTEXPR inline QByteArray(QByteArrayDataPtr dd)
+ inline QByteArray(QByteArrayDataPtr dd)
: d(reinterpret_cast<Data *>(dd.ptr))
{
}