summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydata.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2019-11-13 20:33:50 +0100
committerLars Knoll <lars.knoll@qt.io>2019-12-08 21:51:33 +0100
commit20041afe3bdb3d3476c02897b8da288cba6011f4 (patch)
tree1f7eba83f17d80f258efe16beb4519152f38e5e8 /src/corelib/tools/qarraydata.cpp
parent8e34d49201b46b1e16cd3a8c99236f03a8250ff9 (diff)
Use QArrayDataPointer to implement QByteArray
Change-Id: I2ee28023c2dea9fc3160400112c59a47566a4868 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/corelib/tools/qarraydata.cpp')
-rw-r--r--src/corelib/tools/qarraydata.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qarraydata.cpp b/src/corelib/tools/qarraydata.cpp
index 9c3848fa7a..4c9324255f 100644
--- a/src/corelib/tools/qarraydata.cpp
+++ b/src/corelib/tools/qarraydata.cpp
@@ -185,6 +185,7 @@ static QArrayData *allocateData(size_t allocSize, uint options)
if (header) {
header->ref_.storeRelaxed(1);
header->flags = options;
+ header->alloc = 0;
}
return header;
}