aboutsummaryrefslogtreecommitdiff
path: root/autotests
diff options
context:
space:
mode:
Diffstat (limited to 'autotests')
-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);