From c8b299b356d965826007509a1044d661e7e76307 Mon Sep 17 00:00:00 2001 From: Ivan Milov <522518+ivanmilov@users.noreply.github.com> Date: Fri, 24 Feb 2023 12:17:20 +0100 Subject: [PATCH] Fix QT 6.4.x deprecation --- src/o2simplecrypt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/o2simplecrypt.cpp b/src/o2simplecrypt.cpp index 3db2b14..be542eb 100644 --- a/src/o2simplecrypt.cpp +++ b/src/o2simplecrypt.cpp @@ -102,7 +102,7 @@ QByteArray O0SimpleCrypt::encryptToByteArray(QByteArray plaintext) flags |= CryptoFlagCompression; } else if (m_compressionMode == CompressionAuto) { QByteArray compressed = qCompress(ba, 9); - if (compressed.count() < ba.count()) { + if (compressed.size() < ba.size()) { ba = compressed; flags |= CryptoFlagCompression; } @@ -136,7 +136,7 @@ QByteArray O0SimpleCrypt::encryptToByteArray(QByteArray plaintext) int pos(0); char lastChar(0); - int cnt = ba.count(); + int cnt = ba.size(); while (pos < cnt) { ba[pos] = ba.at(pos) ^ m_keyParts.at(pos % 8) ^ lastChar; @@ -220,7 +220,7 @@ QByteArray O0SimpleCrypt::decryptToByteArray(QByteArray cypher) ba = ba.mid(2); int pos(0); - int cnt(ba.count()); + int cnt(ba.size()); char lastChar = 0; while (pos < cnt) {