From 0341bf2e979264b9f7606bd57e594a41c27a38cc Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 22 May 2020 11:26:21 +0200 Subject: 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 --- src/corelib/tools/qarraydataops.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/corelib/tools/qarraydataops.h') 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 -- cgit v1.2.3