From 77a9a5c76685795376e8acd4d684c30a77192795 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Thu, 30 Sep 2021 15:52:59 +0200 Subject: TrustStorage: Remove unnecessary const constraint Some implementations may require non-const access. --- src/client/QXmppTrustMemoryStorage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/QXmppTrustMemoryStorage.cpp') diff --git a/src/client/QXmppTrustMemoryStorage.cpp b/src/client/QXmppTrustMemoryStorage.cpp index c6d80179..9228fa6d 100644 --- a/src/client/QXmppTrustMemoryStorage.cpp +++ b/src/client/QXmppTrustMemoryStorage.cpp @@ -127,7 +127,7 @@ QFuture QXmppTrustMemoryStorage::removeOwnKey(const QString &encryption) return makeReadyFuture(); } -QFuture QXmppTrustMemoryStorage::ownKey(const QString &encryption) const +QFuture QXmppTrustMemoryStorage::ownKey(const QString &encryption) { auto key = d->ownKeys[encryption]; return makeReadyFuture(std::move(key)); @@ -170,7 +170,7 @@ QFuture QXmppTrustMemoryStorage::removeKeys(const QString &encryption, con return makeReadyFuture(); } -QFuture>> QXmppTrustMemoryStorage::keys(const QString &encryption, const TrustLevels trustLevels) const +QFuture>> QXmppTrustMemoryStorage::keys(const QString &encryption, const TrustLevels trustLevels) { QHash> keys; @@ -231,7 +231,7 @@ QFuture QXmppTrustMemoryStorage::setTrustLevel(const QString &encryption, return makeReadyFuture(); } -QFuture QXmppTrustMemoryStorage::trustLevel(const QString &encryption, const QString &keyId) const +QFuture QXmppTrustMemoryStorage::trustLevel(const QString &encryption, const QString &keyId) { const auto processedKeys = d->processedKeys.values(encryption); for (const auto &key : processedKeys) { -- cgit v1.2.3