diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-09 13:30:03 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2020-08-27 18:58:20 +0200 |
commit | 50661a9558ca3fe93bf569cc572b0fb2def5589d (patch) | |
tree | 6cf8e3d1bbfd4867db5fc79959b0c3df1a20a97a /tests/auto/corelib/text | |
parent | f48dba06650801c5678ae89adfc14b1cc3209da9 (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 'tests/auto/corelib/text')
-rw-r--r-- | tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp index 308b60d83b..6ac24d280d 100644 --- a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp +++ b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp @@ -1023,9 +1023,9 @@ void tst_QByteArray::replace() void tst_QByteArray::replaceWithSpecifiedLength() { const char after[] = "zxc\0vbnmqwert"; - int lenAfter = 6; + qsizetype lenAfter = 6; QByteArray ba("abcdefghjk"); - ba.replace(0,2,after,lenAfter); + ba.replace(qsizetype(0), 2, after, lenAfter); const char _expected[] = "zxc\0vbcdefghjk"; QByteArray expected(_expected,sizeof(_expected)-1); |