diff options
Diffstat (limited to 'src/base/QXmppPresence.cpp')
| -rw-r--r-- | src/base/QXmppPresence.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/QXmppPresence.cpp b/src/base/QXmppPresence.cpp index a720a0e4..5934c491 100644 --- a/src/base/QXmppPresence.cpp +++ b/src/base/QXmppPresence.cpp @@ -222,7 +222,7 @@ void QXmppPresence::parse(const QDomElement &element) QDomElement photoElement = xElement.firstChildElement("photo"); if(!photoElement.isNull()) { - d->photoHash = QByteArray::fromHex(photoElement.text().toAscii()); + d->photoHash = QByteArray::fromHex(photoElement.text().toLatin1()); if(d->photoHash.isEmpty()) d->vCardUpdateType = VCardUpdateNoPhoto; else @@ -238,7 +238,7 @@ void QXmppPresence::parse(const QDomElement &element) else if(xElement.tagName() == "c" && xElement.namespaceURI() == ns_capabilities) { d->capabilityNode = xElement.attribute("node"); - d->capabilityVer = QByteArray::fromBase64(xElement.attribute("ver").toAscii()); + d->capabilityVer = QByteArray::fromBase64(xElement.attribute("ver").toLatin1()); d->capabilityHash = xElement.attribute("hash"); d->capabilityExt = xElement.attribute("ext").split(" ", QString::SkipEmptyParts); } |
