aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppStun.cpp
diff options
context:
space:
mode:
authorMatt Broadstone <mbroadst@gmail.com>2012-11-16 09:44:22 -0500
committerJeremy Lainé <jeremy.laine@m4x.org>2012-11-16 16:23:34 +0100
commit0e07f82c8d7851e02fc5340cacfc5d4d5accb699 (patch)
tree662a49aa5d76d2fc921644f2ecbe08bf85721c23 /src/base/QXmppStun.cpp
parentbf537e01032f2f0bb013fb45e4a9c13113f77a6f (diff)
downloadqxmpp-0e07f82c8d7851e02fc5340cacfc5d4d5accb699.tar.gz
convert QString::fromAscii to QString::fromLatin1
Diffstat (limited to 'src/base/QXmppStun.cpp')
-rw-r--r--src/base/QXmppStun.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/base/QXmppStun.cpp b/src/base/QXmppStun.cpp
index 4fd7f252..1004cb3e 100644
--- a/src/base/QXmppStun.cpp
+++ b/src/base/QXmppStun.cpp
@@ -1006,7 +1006,7 @@ QString QXmppStunMessage::toString() const
dumpLines << QString(" type %1 (%2)")
.arg(typeName)
.arg(QString::number(m_type));
- dumpLines << QString(" id %1").arg(QString::fromAscii(m_id.toHex()));
+ dumpLines << QString(" id %1").arg(QString::fromLatin1(m_id.toHex()));
// attributes
if (m_attributes.contains(ChannelNumber))
@@ -1023,7 +1023,7 @@ QString QXmppStunMessage::toString() const
if (m_attributes.contains(RequestedTransport))
dumpLines << QString(" * REQUESTED-TRANSPORT 0x%1").arg(QString::number(m_requestedTransport, 16));
if (m_attributes.contains(ReservationToken))
- dumpLines << QString(" * RESERVATION-TOKEN %1").arg(QString::fromAscii(m_reservationToken.toHex()));
+ dumpLines << QString(" * RESERVATION-TOKEN %1").arg(QString::fromLatin1(m_reservationToken.toHex()));
if (m_attributes.contains(Software))
dumpLines << QString(" * SOFTWARE %1").arg(m_software);
if (m_attributes.contains(Username))
@@ -1056,10 +1056,10 @@ QString QXmppStunMessage::toString() const
dumpLines << QString(" * PRIORITY %1").arg(QString::number(m_priority));
if (!iceControlling.isEmpty())
dumpLines << QString(" * ICE-CONTROLLING %1")
- .arg(QString::fromAscii(iceControlling.toHex()));
+ .arg(QString::fromLatin1(iceControlling.toHex()));
if (!iceControlled.isEmpty())
dumpLines << QString(" * ICE-CONTROLLED %1")
- .arg(QString::fromAscii(iceControlled.toHex()));
+ .arg(QString::fromLatin1(iceControlled.toHex()));
return dumpLines.join("\n");
}
@@ -2096,7 +2096,7 @@ void QXmppIceComponent::handleDatagram(const QByteArray &buffer, const QHostAddr
}
if (!pair)
{
- debug(QString("Unknown transaction %1").arg(QString::fromAscii(message.id().toHex())));
+ debug(QString("Unknown transaction %1").arg(QString::fromLatin1(message.id().toHex())));
return;
}
// store peer-reflexive address