From 5ea50054a18c07f86f61e95dad5bca41c521ad3d Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sun, 2 May 2021 02:17:14 +0200 Subject: 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 --- src/corelib/tools/qarraydata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/tools/qarraydata.cpp') diff --git a/src/corelib/tools/qarraydata.cpp b/src/corelib/tools/qarraydata.cpp index 3297b51cfe6..9a52898716d 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(::malloc(size_t(allocSize))); if (header) { header->ref_.storeRelaxed(1); - header->flags = 0; + header->flags = {}; header->alloc = 0; } return header; -- cgit v1.2.3