summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydata.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-02 02:17:14 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-17 00:11:12 +0200
commit5ea50054a18c07f86f61e95dad5bca41c521ad3d (patch)
tree8b5cfc98a614ba2653259438b54062f2fc8bc58b /src/corelib/tools/qarraydata.cpp
parent8e82c30680b96ff0f95caa28517fa410cd6d291a (diff)
QArrayData: store the right flag type, not an int
There's no reason to be storing `int` in the array data header and then using it as a QFlags. Just store the QFlags. Change-Id: I78f489550d74d15a560dacf338110d80a7ddfdd2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qarraydata.cpp')
-rw-r--r--src/corelib/tools/qarraydata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qarraydata.cpp b/src/corelib/tools/qarraydata.cpp
index 3297b51cfe..9a52898716 100644
--- a/src/corelib/tools/qarraydata.cpp
+++ b/src/corelib/tools/qarraydata.cpp
@@ -178,7 +178,7 @@ static QArrayData *allocateData(qsizetype allocSize)
QArrayData *header = static_cast<QArrayData *>(::malloc(size_t(allocSize)));
if (header) {
header->ref_.storeRelaxed(1);
- header->flags = 0;
+ header->flags = {};
header->alloc = 0;
}
return header;