diff options
author | Ingo Klöcker <[email protected]> | 2021-09-13 15:30:49 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2021-09-13 15:30:49 +0000 |
commit | ab9bca09eb869b2013c85fee232f1e62aed925f6 (patch) | |
tree | 3f77665992c45f0d272141ba94af0e15146c3a2b /lang/qt/tests/t-various.cpp | |
parent | build: Fix make distcheck problem. (diff) | |
download | gpgme-ab9bca09eb869b2013c85fee232f1e62aed925f6.tar.gz gpgme-ab9bca09eb869b2013c85fee232f1e62aed925f6.zip |
qt: Fix build against Qt 5.9
* lang/qt/tests/t-keylist.cpp (KeyListTest::testListAllKeysSync):
Ensure same type for both arguments of QCOMPARE.
* lang/qt/tests/t-various.cpp (TestVarious::testSetExpire):
Ensure same type for both arguments of QCOMPARE.
--
Qt 5.9 does not yet have the generic qCompare helper which supports
arguments of any type that can be compared with ==.
GnuPG-bug-id: 5592
Diffstat (limited to 'lang/qt/tests/t-various.cpp')
-rw-r--r-- | lang/qt/tests/t-various.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/qt/tests/t-various.cpp b/lang/qt/tests/t-various.cpp index 72a2487a..dca34d30 100644 --- a/lang/qt/tests/t-various.cpp +++ b/lang/qt/tests/t-various.cpp @@ -230,7 +230,7 @@ private Q_SLOTS: std::vector<Subkey> primaryKey; primaryKey.push_back(key.subkey(0)); const auto err = ctx->setExpire(key, 3000, primaryKey); - QCOMPARE(err.code(), GPG_ERR_NOT_FOUND); + QCOMPARE(err.code(), static_cast<int>(GPG_ERR_NOT_FOUND)); delete ctx; } |