qt: Apply compiler hint

* lang/qt/tests/t-verify.cpp (VerifyTest::testSignatureKey): Use
reference type to prevent copying.
--
This commit is contained in:
Ingo Klöcker 2022-05-02 16:04:28 +02:00
parent 540e7bf3d4
commit f1a354fd57

View File

@ -81,7 +81,7 @@ private Q_SLOTS:
QVERIFY(!key.isNull()); QVERIFY(!key.isNull());
bool found = false; bool found = false;
for (const auto subkey: key.subkeys()) { for (const auto &subkey: key.subkeys()) {
if (!strcmp (subkey.fingerprint(), sig.fingerprint())) { if (!strcmp (subkey.fingerprint(), sig.fingerprint())) {
found = true; found = true;
} }