diff options
author | Morten Sorvig <morten.sorvig@nokia.com> | 2012-06-13 10:01:54 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-14 03:03:38 +0200 |
commit | bfca0a1bb65851254156e459cc3ae76fdababf9c (patch) | |
tree | dba2fe56f6281a3fbef703e575d121ddda0e4b48 /src/corelib/tools/qbytearray.h | |
parent | 3e9c45c4cc0362a8fba319677cd2735e7eeab400 (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.h | 2 |
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)) { } |