diff options
| author | Linus Jahn <lnj@kaidan.im> | 2023-01-31 19:55:13 +0100 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2023-01-31 19:55:42 +0100 |
| commit | 1a79303169e245891a911174b6f1fa87fd177597 (patch) | |
| tree | fe9d1ce5bae58d8a51255370257b3c0c3f699e73 /src/base/QXmppBitsOfBinaryContentId.cpp | |
| parent | a97ae4c0fa96666326c29e7bacad92c8082598ae (diff) | |
| download | qxmpp-1a79303169e245891a911174b6f1fa87fd177597.tar.gz | |
Remove Qt < 5.15 compat code
Diffstat (limited to 'src/base/QXmppBitsOfBinaryContentId.cpp')
| -rw-r--r-- | src/base/QXmppBitsOfBinaryContentId.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/base/QXmppBitsOfBinaryContentId.cpp b/src/base/QXmppBitsOfBinaryContentId.cpp index a348b2f8..46e203a8 100644 --- a/src/base/QXmppBitsOfBinaryContentId.cpp +++ b/src/base/QXmppBitsOfBinaryContentId.cpp @@ -219,21 +219,16 @@ void QXmppBitsOfBinaryContentId::setAlgorithm(QCryptographicHash::Algorithm algo /// /// Checks whether the content id is valid and can be serialized into a string. /// -/// \note Checking the hash length requires QXmpp to be built with Qt 5.12.0 or -/// later. +/// Also checks the length of the hash. /// /// \returns True, if the set hashing algorithm is supported, a hash value is /// set and its length is correct, false otherwise. /// bool QXmppBitsOfBinaryContentId::isValid() const { -#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0) return !d->hash.isEmpty() && HASH_ALGORITHMS.contains(d->algorithm) && d->hash.length() == QCryptographicHash::hashLength(d->algorithm); -#else - return !d->hash.isEmpty() && HASH_ALGORITHMS.contains(d->algorithm); -#endif } /// |
