diff options
| author | Jonah BrĂ¼chert <jbb.prv@gmx.de> | 2019-05-14 13:10:31 +0000 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2019-09-03 16:10:51 +0200 |
| commit | be4aee23a4ce3e6791a4a46651e714e74b287def (patch) | |
| tree | b9f2e356cba9f4157edb26726548c4bf68dd5c48 /src/base/QXmppDiscoveryIq.cpp | |
| parent | e6eb0b78d0cb17fccd5ddb60966ba2a0a2d2b593 (diff) | |
| download | qxmpp-be4aee23a4ce3e6791a4a46651e714e74b287def.tar.gz | |
Port deprecated qSort invocations to std::sort
Diffstat (limited to 'src/base/QXmppDiscoveryIq.cpp')
| -rw-r--r-- | src/base/QXmppDiscoveryIq.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/QXmppDiscoveryIq.cpp b/src/base/QXmppDiscoveryIq.cpp index 2f8af810..98fa195e 100644 --- a/src/base/QXmppDiscoveryIq.cpp +++ b/src/base/QXmppDiscoveryIq.cpp @@ -199,9 +199,9 @@ QByteArray QXmppDiscoveryIq::verificationString() const { QString S; QList<QXmppDiscoveryIq::Identity> sortedIdentities = m_identities; - qSort(sortedIdentities.begin(), sortedIdentities.end(), identityLessThan); + std::sort(sortedIdentities.begin(), sortedIdentities.end(), identityLessThan); QStringList sortedFeatures = m_features; - qSort(sortedFeatures); + std::sort(sortedFeatures.begin(), sortedFeatures.end()); sortedFeatures.removeDuplicates(); foreach (const QXmppDiscoveryIq::Identity &identity, sortedIdentities) S += QString("%1/%2/%3/%4<").arg(identity.category(), identity.type(), identity.language(), identity.name()); @@ -219,7 +219,7 @@ QByteArray QXmppDiscoveryIq::verificationString() const S += field.value().toString() + QLatin1String("<"); QStringList keys = fieldMap.keys(); - qSort(keys); + std::sort(keys.begin(), keys.end()); foreach (const QString &key, keys) { const QXmppDataForm::Field field = fieldMap.value(key); S += key + QLatin1String("<"); |
