aboutsummaryrefslogtreecommitdiff
path: root/autotests/testolmutility.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-02-16 17:28:29 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-02-16 17:58:17 +0100
commita42fd5d188e58da95169ea21b4cae23cccd26819 (patch)
tree341512651f2231088e0c148b21f9fc07d59f12ef /autotests/testolmutility.cpp
parente93260a6b68279518270d0aec2c55f826375fa8a (diff)
downloadlibquotient-a42fd5d188e58da95169ea21b4cae23cccd26819.tar.gz
libquotient-a42fd5d188e58da95169ea21b4cae23cccd26819.zip
TestOlmUtility: fix building with Qt 5.12
QKeyValueIterator::operator->() only arrived in Qt 5.15.
Diffstat (limited to 'autotests/testolmutility.cpp')
-rw-r--r--autotests/testolmutility.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/autotests/testolmutility.cpp b/autotests/testolmutility.cpp
index d0476af0..7a55b61e 100644
--- a/autotests/testolmutility.cpp
+++ b/autotests/testolmutility.cpp
@@ -52,7 +52,7 @@ void TestOlmUtility::verifySignedOneTimeKey()
aliceOlm.generateOneTimeKeys(1);
auto keys = aliceOlm.oneTimeKeys();
- auto firstKey = keys.curve25519().keyValueBegin()->second;
+ auto firstKey = *keys.curve25519().begin();
auto msgObj = QJsonObject({{"key", firstKey}});
auto sig = aliceOlm.sign(msgObj);