diff options
| author | Matt Broadstone <mbroadst@gmail.com> | 2012-11-15 18:58:52 -0500 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-11-16 07:31:16 +0100 |
| commit | bf537e01032f2f0bb013fb45e4a9c13113f77a6f (patch) | |
| tree | 204a8d6fa700e3ebcb44cf65712cf63764202d9f /src/base/QXmppPresence.cpp | |
| parent | 1ba3b087975e523bb05b0703a5b0fa8392b7429b (diff) | |
| download | qxmpp-bf537e01032f2f0bb013fb45e4a9c13113f77a6f.tar.gz | |
move from toAscii() to toLatin1()
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); } |
