From bfca0a1bb65851254156e459cc3ae76fdababf9c Mon Sep 17 00:00:00 2001 From: Morten Sorvig Date: Wed, 13 Jun 2012 10:01:54 +0200 Subject: Compile. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Expressions containing "reinterpret_cast" are not constant expressions according to C++11 rules. Change-Id: Id97729f184983e5bdda180b99cfbe27e2768e09e Reviewed-by: Jędrzej Nowacki Reviewed-by: Thiago Macieira --- src/corelib/tools/qbytearray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(dd.ptr)) { } -- cgit v1.2.3