diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index 4a8a8c1c20c..8453a04f105 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -950,7 +950,7 @@ bool QCryptographicHashPrivate::supportsAlgorithm(QCryptographicHash::Algorithm #endif } -static int qt_hash_block_size(QCryptographicHash::Algorithm method) +static constexpr int qt_hash_block_size(QCryptographicHash::Algorithm method) { switch (method) { case QCryptographicHash::Sha1: