diff options
| author | Linus Jahn <lnj@kaidan.im> | 2021-03-17 17:24:46 +0100 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2021-03-17 17:24:46 +0100 |
| commit | 89f1c188b0cf0064187b8b36286c49febe982db0 (patch) | |
| tree | 466d1ba60a7de37aa77251028c10fd2e0b55f0cb /src/client | |
| parent | a6d4797d00653e2faf08754165da57f6cb944920 (diff) | |
| parent | 84b387c198a1ad368c0fc16a776ecaef85e3b1b2 (diff) | |
| download | qxmpp-89f1c188b0cf0064187b8b36286c49febe982db0.tar.gz | |
Merge branch '1.4'
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/QXmppInvokable.cpp | 2 | ||||
| -rw-r--r-- | src/client/QXmppMucManager.cpp | 4 | ||||
| -rw-r--r-- | src/client/QXmppOutgoingClient.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/client/QXmppInvokable.cpp b/src/client/QXmppInvokable.cpp index 4a60c317..e407aa4f 100644 --- a/src/client/QXmppInvokable.cpp +++ b/src/client/QXmppInvokable.cpp @@ -96,7 +96,7 @@ QVariant QXmppInvokable::dispatch(const QByteArray &method, const QList<QVariant QList<QByteArray> QXmppInvokable::paramTypes(const QList<QVariant> ¶ms) { QList<QByteArray> types; - for (const auto &variant : qAsConst(params)) + for (const auto &variant : std::as_const(params)) types << variant.typeName(); return types; } diff --git a/src/client/QXmppMucManager.cpp b/src/client/QXmppMucManager.cpp index 636f4288..a19cc139 100644 --- a/src/client/QXmppMucManager.cpp +++ b/src/client/QXmppMucManager.cpp @@ -474,7 +474,7 @@ bool QXmppMucRoom::requestPermissions() d->permissions.clear(); d->permissionsQueue.clear(); - for (const auto &affiliation : qAsConst(affiliations)) { + for (const auto &affiliation : std::as_const(affiliations)) { QXmppMucItem item; item.setAffiliation(affiliation); @@ -499,7 +499,7 @@ bool QXmppMucRoom::setPermissions(const QList<QXmppMucItem> &permissions) QList<QXmppMucItem> items; // Process changed members - for (const auto &item : qAsConst(permissions)) { + for (const auto &item : std::as_const(permissions)) { const QString jid = item.jid(); if (d->permissions.value(jid).affiliation() != item.affiliation()) items << item; diff --git a/src/client/QXmppOutgoingClient.cpp b/src/client/QXmppOutgoingClient.cpp index 583d93ed..a8bfb62d 100644 --- a/src/client/QXmppOutgoingClient.cpp +++ b/src/client/QXmppOutgoingClient.cpp @@ -457,7 +457,7 @@ void QXmppOutgoingClient::handleStanza(const QDomElement &nodeRecv) // determine SASL Authentication mechanism to use QStringList commonMechanisms; QString usedMechanism; - for (const auto &mechanism : qAsConst(supportedMechanisms)) { + for (const auto &mechanism : std::as_const(supportedMechanisms)) { if (features.authMechanisms().contains(mechanism)) commonMechanisms << mechanism; } |
