summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-07-09 13:30:03 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2020-08-27 18:58:20 +0200
commit50661a9558ca3fe93bf569cc572b0fb2def5589d (patch)
tree6cf8e3d1bbfd4867db5fc79959b0c3df1a20a97a /src/corelib/tools
parentf48dba06650801c5678ae89adfc14b1cc3209da9 (diff)
Change QByteArray to handle large arrays
Use qsizetype throughout. Change-Id: I787af7fcfa17e1be87decb64c41c609cc24be117 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r--src/corelib/tools/qtools_p.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/tools/qtools_p.h b/src/corelib/tools/qtools_p.h
index a86a55646d..5b6be12820 100644
--- a/src/corelib/tools/qtools_p.h
+++ b/src/corelib/tools/qtools_p.h
@@ -87,9 +87,7 @@ constexpr inline int fromOct(uint c) noexcept
}
// We typically need an extra bit for qNextPowerOfTwo when determining the next allocation size.
-enum {
- MaxAllocSize = (std::numeric_limits<int>::max)()
-};
+constexpr qsizetype MaxAllocSize = (std::numeric_limits<qsizetype>::max)();
struct CalculateGrowingBlockSizeResult {
qsizetype size;