diff options
| author | Linus Jahn <lnj@kaidan.im> | 2020-07-02 18:19:37 +0200 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-07-03 13:13:31 +0200 |
| commit | 9b2c1efdbb6f17d093423c96f99fc722e114267e (patch) | |
| tree | 538ac7b98b57739c3f1e0078dd39bb38d28c5bed /src/base/QXmppPresence.cpp | |
| parent | aa758fc9b331dc73b434b633955e4f655a948797 (diff) | |
| download | qxmpp-9b2c1efdbb6f17d093423c96f99fc722e114267e.tar.gz | |
Replace deprecated QString::SplitBehavior
Diffstat (limited to 'src/base/QXmppPresence.cpp')
| -rw-r--r-- | src/base/QXmppPresence.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/QXmppPresence.cpp b/src/base/QXmppPresence.cpp index edecc961..0a38c4b1 100644 --- a/src/base/QXmppPresence.cpp +++ b/src/base/QXmppPresence.cpp @@ -447,7 +447,11 @@ void QXmppPresence::parseExtension(const QDomElement &element, QXmppElementList d->capabilityNode = element.attribute(QStringLiteral("node")); d->capabilityVer = QByteArray::fromBase64(element.attribute(QStringLiteral("ver")).toLatin1()); d->capabilityHash = element.attribute(QStringLiteral("hash")); +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + d->capabilityExt = element.attribute(QStringLiteral("ext")).split(' ', Qt::SkipEmptyParts); +#else d->capabilityExt = element.attribute(QStringLiteral("ext")).split(' ', QString::SkipEmptyParts); +#endif // XEP-0153: vCard-Based Avatars } else if (element.namespaceURI() == ns_vcard_update) { QDomElement photoElement = element.firstChildElement(QStringLiteral("photo")); |
