diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-07-06 22:21:04 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-08 12:31:15 +0000 |
commit | 712d605c4343f33390ddfe92e504cb35f478a542 (patch) | |
tree | 15bb1973b3b0cf8f02b1c5bb0e48ce4b156e4d90 /src/corelib/tools/qarraydata.h | |
parent | 521ad6048fd91357270816fd304a6a0d0d7bde80 (diff) | |
download | qtbase-712d605c4343f33390ddfe92e504cb35f478a542.tar.gz |
Compile with !QT_SUPPORTS(UNSHARABLE_CONTAINERS)
'Unsharable' isn't available, then.
Change-Id: Ifab3b2306379c651bfcd8381836a8f7eadbdc6d6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qarraydata.h')
-rw-r--r-- | src/corelib/tools/qarraydata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/tools/qarraydata.h b/src/corelib/tools/qarraydata.h index 95c1d5f22e..865bd4325d 100644 --- a/src/corelib/tools/qarraydata.h +++ b/src/corelib/tools/qarraydata.h @@ -249,11 +249,13 @@ struct QTypedArrayData return allocate(/* capacity */ 0); } +#if QT_SUPPORTS(UNSHARABLE_CONTAINERS) static QTypedArrayData *unsharableEmpty() { Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData)); return allocate(/* capacity */ 0, Unsharable); } +#endif }; template <class T, size_t N> |