diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-09-11 13:50:48 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-09-11 19:32:34 +0200 |
commit | 0078391c18fd93dfc52075a780ff308a18993fb6 (patch) | |
tree | 28355f59a509527f7ae8006b710465569156dfbd /tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp | |
parent | 199d86782075e6a4fff624784340c2d9d45c5297 (diff) |
Fix warnings coming from using the deprecated overload of qCheckSum
Change-Id: I719c2d56a690fd245d3917045de4005f118c688b
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp')
-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 6ac24d280d..2f0f5654ca 100644 --- a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp +++ b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp @@ -235,9 +235,9 @@ void tst_QByteArray::qChecksum() QCOMPARE(data.length(), int(len)); if (standard == Qt::ChecksumIso3309) { - QCOMPARE(::qChecksum(data.constData(), len), static_cast<quint16>(checksum)); + QCOMPARE(::qChecksum(QByteArrayView(data.constData(), len)), static_cast<quint16>(checksum)); } - QCOMPARE(::qChecksum(data.constData(), len, standard), static_cast<quint16>(checksum)); + QCOMPARE(::qChecksum(QByteArrayView(data.constData(), len), standard), static_cast<quint16>(checksum)); } void tst_QByteArray::qCompress_data() |