aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/QXmppPresence.cpp2
-rw-r--r--src/QXmppUtils.cpp6
-rw-r--r--src/QXmppUtils.h2
3 files changed, 1 insertions, 9 deletions
diff --git a/src/QXmppPresence.cpp b/src/QXmppPresence.cpp
index c6562ae5..567341b8 100644
--- a/src/QXmppPresence.cpp
+++ b/src/QXmppPresence.cpp
@@ -449,7 +449,7 @@ void QXmppPresence::Status::toXml(QXmlStreamWriter *xmlWriter) const
if (!m_statusText.isEmpty())
helperToXmlAddTextElement(xmlWriter, "status", m_statusText);
if (m_priority != 0)
- helperToXmlAddNumberElement(xmlWriter, "priority", m_priority);
+ helperToXmlAddTextElement(xmlWriter, "priority", QString::number(m_priority));
}
/// Returns the photo-hash of the VCardUpdate.
diff --git a/src/QXmppUtils.cpp b/src/QXmppUtils.cpp
index d8dfaf48..a6a28298 100644
--- a/src/QXmppUtils.cpp
+++ b/src/QXmppUtils.cpp
@@ -328,12 +328,6 @@ void helperToXmlAddDomElement(QXmlStreamWriter* stream, const QDomElement& eleme
stream->writeEndElement();
}
-
-void helperToXmlAddNumberElement(QXmlStreamWriter* stream, const QString& name, int value)
-{
- stream->writeTextElement( name, QString::number(value));
-}
-
void helperToXmlAddTextElement(QXmlStreamWriter* stream, const QString& name,
const QString& value)
{
diff --git a/src/QXmppUtils.h b/src/QXmppUtils.h
index 92a253b5..80d84240 100644
--- a/src/QXmppUtils.h
+++ b/src/QXmppUtils.h
@@ -62,7 +62,5 @@ void helperToXmlAddDomElement(QXmlStreamWriter* stream,
const QDomElement& element, const QStringList &omitNamespaces);
void helperToXmlAddTextElement(QXmlStreamWriter* stream, const QString& name,
const QString& value);
-void helperToXmlAddNumberElement(QXmlStreamWriter* stream, const QString& name,
- int value);
#endif // QXMPPUTILS_H