From f1a354fd57d6cc9e34ff33ea60aa4ef0aca382a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 2 May 2022 16:04:28 +0200 Subject: [PATCH] qt: Apply compiler hint * lang/qt/tests/t-verify.cpp (VerifyTest::testSignatureKey): Use reference type to prevent copying. -- --- lang/qt/tests/t-verify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/qt/tests/t-verify.cpp b/lang/qt/tests/t-verify.cpp index e6b0c8a4..0dbecf79 100644 --- a/lang/qt/tests/t-verify.cpp +++ b/lang/qt/tests/t-verify.cpp @@ -81,7 +81,7 @@ private Q_SLOTS: QVERIFY(!key.isNull()); bool found = false; - for (const auto subkey: key.subkeys()) { + for (const auto &subkey: key.subkeys()) { if (!strcmp (subkey.fingerprint(), sig.fingerprint())) { found = true; }