summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydataops.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-05-22 11:26:21 +0200
committerLars Knoll <lars.knoll@qt.io>2020-07-06 21:30:47 +0200
commit0341bf2e979264b9f7606bd57e594a41c27a38cc (patch)
tree226be567b0eee672a38dd9b83494815d4bc0d110 /src/corelib/tools/qarraydataops.h
parentc129362b4d9512bd33004d430bc3b817546cb1b7 (diff)
Make QArrayDataPointer::size a qsizetype
This is a next step towards making QList, QString and QByteArray able to deal with large sizes. Change-Id: Icad49b33f503401ac4912678b2f88584c6f91a63 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qarraydataops.h')
-rw-r--r--src/corelib/tools/qarraydataops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h
index bea585e69ab..a97f2da175c 100644
--- a/src/corelib/tools/qarraydataops.h
+++ b/src/corelib/tools/qarraydataops.h
@@ -690,7 +690,7 @@ struct QMovableArrayOps
struct Mover
{
- Mover(T *&start, const T *finish, int &sz)
+ Mover(T *&start, const T *finish, qsizetype &sz)
: destination(start)
, source(start)
, n(finish - start)
@@ -707,7 +707,7 @@ struct QMovableArrayOps
T *&destination;
const T *const source;
size_t n;
- int &size;
+ qsizetype &size;
} mover(e, this->end(), this->size);
// destroy the elements we're erasing