diff options
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/QXmppOutgoingServer.cpp | 2 | ||||
| -rw-r--r-- | src/server/QXmppServer.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/server/QXmppOutgoingServer.cpp b/src/server/QXmppOutgoingServer.cpp index 7f4e6bfd..0577d54e 100644 --- a/src/server/QXmppOutgoingServer.cpp +++ b/src/server/QXmppOutgoingServer.cpp @@ -217,7 +217,7 @@ void QXmppOutgoingServer::handleStanza(const QDomElement &stanza) d->ready = true; // send queued data - for (const auto &data : qAsConst(d->dataQueue)) + for (const auto &data : std::as_const(d->dataQueue)) sendData(data); d->dataQueue.clear(); diff --git a/src/server/QXmppServer.cpp b/src/server/QXmppServer.cpp index 2836cc36..3eacfbd3 100644 --- a/src/server/QXmppServer.cpp +++ b/src/server/QXmppServer.cpp @@ -152,7 +152,7 @@ bool QXmppServerPrivate::routeData(const QString &to, const QByteArray &data) } else if (!serversForServers.isEmpty()) { // look for an outgoing S2S connection - for (auto *conn : qAsConst(outgoingServers)) { + for (auto *conn : std::as_const(outgoingServers)) { if (conn->remoteDomain() == toDomain) { // send or queue data QMetaObject::invokeMethod(conn, "queueData", Q_ARG(QByteArray, data)); @@ -770,7 +770,7 @@ void QXmppServer::_q_dialbackRequestReceived(const QXmppDialback &dialback) if (dialback.command() == QXmppDialback::Verify) { // handle a verify request - for (auto *out : qAsConst(d->outgoingServers)) { + for (auto *out : std::as_const(d->outgoingServers)) { if (out->remoteDomain() != dialback.from()) continue; |
