diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-05-02 02:17:14 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-05-17 00:11:12 +0200 |
commit | 5ea50054a18c07f86f61e95dad5bca41c521ad3d (patch) | |
tree | 8b5cfc98a614ba2653259438b54062f2fc8bc58b /src/corelib/tools/qarraydata.h | |
parent | 8e82c30680b96ff0f95caa28517fa410cd6d291a (diff) | |
download | qtbase-5ea50054a18c07f86f61e95dad5bca41c521ad3d.tar.gz |
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.h')
-rw-r--r-- | src/corelib/tools/qarraydata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qarraydata.h b/src/corelib/tools/qarraydata.h index 9f39c60f3c..e4250cce47 100644 --- a/src/corelib/tools/qarraydata.h +++ b/src/corelib/tools/qarraydata.h @@ -68,7 +68,7 @@ struct QArrayData Q_DECLARE_FLAGS(ArrayOptions, ArrayOption) QBasicAtomicInt ref_; - uint flags; + ArrayOptions flags; qsizetype alloc; qsizetype allocatedCapacity() noexcept |