diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-04 22:35:06 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-04 22:35:06 +0200 |
commit | 2ecc08357fab7d22947b9cb5251d2f29be2ec55b (patch) | |
tree | 646eda87c53c43ccb1dd3e7c4e8fd24608b5faec /lib/e2ee | |
parent | 90ee70312e5387a289bc12b4e37c48844906bc35 (diff) | |
download | libquotient-2ecc08357fab7d22947b9cb5251d2f29be2ec55b.tar.gz libquotient-2ecc08357fab7d22947b9cb5251d2f29be2ec55b.zip |
Address Sonar warnings
Diffstat (limited to 'lib/e2ee')
-rw-r--r-- | lib/e2ee/qolmaccount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/e2ee/qolmaccount.cpp b/lib/e2ee/qolmaccount.cpp index 4cfc6151..241ae750 100644 --- a/lib/e2ee/qolmaccount.cpp +++ b/lib/e2ee/qolmaccount.cpp @@ -160,8 +160,8 @@ UnsignedOneTimeKeys QOlmAccount::oneTimeKeys() const OneTimeKeys QOlmAccount::signOneTimeKeys(const UnsignedOneTimeKeys &keys) const { OneTimeKeys signedOneTimeKeys; - const auto& curveKeys = keys.curve25519(); - for (const auto& [keyId, key] : asKeyValueRange(curveKeys)) + for (const auto& curveKeys = keys.curve25519(); + const auto& [keyId, key] : asKeyValueRange(curveKeys)) signedOneTimeKeys["signed_curve25519:" % keyId] = signedOneTimeKey(key.toUtf8(), sign(QJsonObject{{"key", key}})); return signedOneTimeKeys; |