summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydataops.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-11-18 16:12:10 +0100
committerLars Knoll <lars.knoll@qt.io>2020-12-01 15:03:22 +0000
commit97abbf3f1fe71886edff3cd5bc42ce3a9057a379 (patch)
treea1ff01fa7f77f357c988f84e86b3e25ee7d17e90 /src/corelib/tools/qarraydataops.h
parent60ea10e70b408b87243b5f0511b91c4848a7ab6f (diff)
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>
Diffstat (limited to 'src/corelib/tools/qarraydataops.h')
-rw-r--r--src/corelib/tools/qarraydataops.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h
index 5f43ed3dc0..cf054a089f 100644
--- a/src/corelib/tools/qarraydataops.h
+++ b/src/corelib/tools/qarraydataops.h
@@ -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)
{