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>
This commit is contained in:
parent
3e9c45c4cc
commit
bfca0a1bb6
@ -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))
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user