diff --git a/tests/benchmarks/corelib/tools/qcryptographichash/tst_bench_qcryptographichash.cpp b/tests/benchmarks/corelib/tools/qcryptographichash/tst_bench_qcryptographichash.cpp index 350474aa90d..2127298f59a 100644 --- a/tests/benchmarks/corelib/tools/qcryptographichash/tst_bench_qcryptographichash.cpp +++ b/tests/benchmarks/corelib/tools/qcryptographichash/tst_bench_qcryptographichash.cpp @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include @@ -45,9 +45,8 @@ private Q_SLOTS: const int MaxBlockSize = 65536; -static void for_each_algorithm(std::function f) +static void for_each_algorithm(qxp::function_ref f) { - Q_ASSERT(f); using A = QCryptographicHash::Algorithm; static const auto metaEnum = QMetaEnum::fromType(); for (int i = 0, value = metaEnum.value(i); value != -1; value = metaEnum.value(++i))