aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-06-13 08:23:49 +0000
committerIngo Klöcker <[email protected]>2024-06-13 08:23:49 +0000
commitc52e1943a72d42cc7dfbfc82b72345092d8f05c0 (patch)
tree28cb0bc24c847fff1ddb5bd75205a77d517bb1af
parentqt: Specify import options as list of strings instead of as string (diff)
downloadgpgme-c52e1943a72d42cc7dfbfc82b72345092d8f05c0.tar.gz
gpgme-c52e1943a72d42cc7dfbfc82b72345092d8f05c0.zip
qt,tests: Fix deprecation warnings (in Qt 6 build)
* lang/qt/tests/t-tofuinfo.cpp (TofuInfoTest::signAndVerify, TofuInfoTest::testTofuPolicy): Use range-based for loop instead of Qt's deprecated foreach. --
-rw-r--r--lang/qt/tests/t-tofuinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/qt/tests/t-tofuinfo.cpp b/lang/qt/tests/t-tofuinfo.cpp
index a1871c4f..c8d35ada 100644
--- a/lang/qt/tests/t-tofuinfo.cpp
+++ b/lang/qt/tests/t-tofuinfo.cpp
@@ -162,7 +162,7 @@ private:
delete job;
QVERIFY(!sigResult.error());
- foreach (const auto uid, keys[0].userIDs()) {
+ for (const auto &uid : keys[0].userIDs()) {
auto info = uid.tofuInfo();
QVERIFY(info.signCount() == expected - 1);
}
@@ -387,7 +387,7 @@ private Q_SLOTS:
<< fi2.isReadable() << " size: " << fi2.size();
result = job->exec(QStringList(), false, keys);
- foreach (const auto key, keys) {
+ for (const auto &key : keys) {
qDebug() << "Key: " << key.userID(0).name() << " <"
<< key.userID(0).email()
<< ">\n fpr: " << key.primaryFingerprint();