aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests/t-verify.cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2022-05-02 14:04:28 +0000
committerIngo Klöcker <[email protected]>2022-05-02 14:04:28 +0000
commitf1a354fd57d6cc9e34ff33ea60aa4ef0aca382a3 (patch)
treed209a3ba14254b827fd5287fe2f2f03aa43cf269 /lang/qt/tests/t-verify.cpp
parentqt: Use GpgME::Locate alias (diff)
downloadgpgme-f1a354fd57d6cc9e34ff33ea60aa4ef0aca382a3.tar.gz
gpgme-f1a354fd57d6cc9e34ff33ea60aa4ef0aca382a3.zip
qt: Apply compiler hint
* lang/qt/tests/t-verify.cpp (VerifyTest::testSignatureKey): Use reference type to prevent copying. --
Diffstat (limited to 'lang/qt/tests/t-verify.cpp')
-rw-r--r--lang/qt/tests/t-verify.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}