From a42fd5d188e58da95169ea21b4cae23cccd26819 Mon Sep 17 00:00:00 2001
From: Alexey Rusakov <Kitsune-Ral@users.sf.net>
Date: Wed, 16 Feb 2022 17:28:29 +0100
Subject: TestOlmUtility: fix building with Qt 5.12

QKeyValueIterator::operator->() only arrived in Qt 5.15.
---
 autotests/testolmutility.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'autotests')

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);
 
-- 
cgit v1.2.3