diff --git a/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp b/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp index c2e8b0194f..00f7afc876 100644 --- a/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp +++ b/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp @@ -393,7 +393,7 @@ void tst_QCryptographicHash::hashLength_data() auto metaEnum = QMetaEnum::fromType(); for (int i = 0, value = metaEnum.value(i); value != -1; value = metaEnum.value(++i)) { auto algorithm = QCryptographicHash::Algorithm(value); - QTest::addRow("%s", metaEnum.valueToKey(value)) << algorithm; + QTest::addRow("%s", metaEnum.key(i)) << algorithm; } }