From 0b606b76e679c587fb14c2472de1b809954f29bf Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Mon, 7 Sep 2009 15:17:44 +0000 Subject: XEP-0054: vcard-temp implementation and other code cleanups --- source/QXmppPresence.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'source/QXmppPresence.cpp') diff --git a/source/QXmppPresence.cpp b/source/QXmppPresence.cpp index fa4c3eb4..f6348a51 100644 --- a/source/QXmppPresence.cpp +++ b/source/QXmppPresence.cpp @@ -26,7 +26,8 @@ #include "QXmppUtils.h" #include -QXmppPresence::QXmppPresence(QXmppPresence::Type type, const QXmppPresence::Status& status) +QXmppPresence::QXmppPresence(QXmppPresence::Type type, + const QXmppPresence::Status& status) : QXmppStanza(), m_type(type), m_status(status) { @@ -178,15 +179,17 @@ void QXmppPresence::setTypeFromStr(const QString& str) else { type = static_cast(-1); - qWarning("QXmppPresence::setTypeFromStr() invalid input string type: %s", qPrintable(str)); + qWarning("QXmppPresence::setTypeFromStr() invalid input string type: %s", + qPrintable(str)); setType(type); return; } } QXmppPresence::Status::Status(QXmppPresence::Status::Type type, - const QString statusText, int priority): m_type(type), - m_statusText(statusText), m_priority(priority) + const QString statusText, int priority) : + m_type(type), + m_statusText(statusText), m_priority(priority) { } @@ -269,7 +272,8 @@ QString QXmppPresence::Status::getTypeStr() const text = "chat"; break; default: - qWarning("QXmppPresence::Status::getTypeStr() invalid type %d", (int)getType()); + qWarning("QXmppPresence::Status::getTypeStr() invalid type %d", + (int)getType()); break; } return text; -- cgit v1.2.3