aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppTrustMemoryStorage.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2021-09-30 15:52:59 +0200
committerLinus Jahn <lnj@kaidan.im>2021-09-30 16:11:17 +0200
commit77a9a5c76685795376e8acd4d684c30a77192795 (patch)
treecf633ee781a5481b78d95181a459d5bd564ff6c2 /src/client/QXmppTrustMemoryStorage.cpp
parent756be3004d8462b54c743b529f6d808168da1566 (diff)
downloadqxmpp-77a9a5c76685795376e8acd4d684c30a77192795.tar.gz
TrustStorage: Remove unnecessary const constraint
Some implementations may require non-const access.
Diffstat (limited to 'src/client/QXmppTrustMemoryStorage.cpp')
-rw-r--r--src/client/QXmppTrustMemoryStorage.cpp6
1 files changed, 3 insertions, 3 deletions
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<void> QXmppTrustMemoryStorage::removeOwnKey(const QString &encryption)
return makeReadyFuture();
}
-QFuture<QString> QXmppTrustMemoryStorage::ownKey(const QString &encryption) const
+QFuture<QString> QXmppTrustMemoryStorage::ownKey(const QString &encryption)
{
auto key = d->ownKeys[encryption];
return makeReadyFuture(std::move(key));
@@ -170,7 +170,7 @@ QFuture<void> QXmppTrustMemoryStorage::removeKeys(const QString &encryption, con
return makeReadyFuture();
}
-QFuture<QHash<QXmppTrustStorage::TrustLevel, QMultiHash<QString, QString>>> QXmppTrustMemoryStorage::keys(const QString &encryption, const TrustLevels trustLevels) const
+QFuture<QHash<QXmppTrustStorage::TrustLevel, QMultiHash<QString, QString>>> QXmppTrustMemoryStorage::keys(const QString &encryption, const TrustLevels trustLevels)
{
QHash<TrustLevel, QMultiHash<QString, QString>> keys;
@@ -231,7 +231,7 @@ QFuture<void> QXmppTrustMemoryStorage::setTrustLevel(const QString &encryption,
return makeReadyFuture();
}
-QFuture<QXmppTrustStorage::TrustLevel> QXmppTrustMemoryStorage::trustLevel(const QString &encryption, const QString &keyId) const
+QFuture<QXmppTrustStorage::TrustLevel> QXmppTrustMemoryStorage::trustLevel(const QString &encryption, const QString &keyId)
{
const auto processedKeys = d->processedKeys.values(encryption);
for (const auto &key : processedKeys) {