Silence code checker warnings

Pick-to: 6.0
Change-Id: I8bd8d830ade3e194f423e00f180c50b176a8adc8
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
This commit is contained in:
Lars Knoll 2020-11-18 16:12:10 +01:00
parent 60ea10e70b
commit 97abbf3f1f

View File

@ -397,8 +397,8 @@ public:
T *begin;
qsizetype size;
qsizetype sourceCopyConstruct, nSource, move, sourceCopyAssign;
T *end, *last, *where;
qsizetype sourceCopyConstruct = 0, nSource = 0, move = 0, sourceCopyAssign = 0;
T *end = nullptr, *last = nullptr, *where = nullptr;
Inserter(QArrayDataPointer<T> *d, QArrayData::GrowthPosition pos)
: data(d), increment(pos == QArrayData::GrowsAtBeginning ? -1 : 1)
@ -414,6 +414,7 @@ public:
data->ptr = begin;
data->size = size;
}
Q_DISABLE_COPY(Inserter)
void setup(qsizetype pos, qsizetype n)
{