aboutsummaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-07-17 09:17:23 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-07-17 09:17:23 +0200
commit7adf1c03febb8a342e96e596564f9e939ba77986 (patch)
tree7cfd46694f67426489b7555b4f4e3933ec31cb1d /src/base
parent8e34f08f8a05d59a8beb34dc956e9e05ae9ba036 (diff)
downloadqxmpp-7adf1c03febb8a342e96e596564f9e939ba77986.tar.gz
whitespace cleanup
Diffstat (limited to 'src/base')
-rw-r--r--src/base/QXmppArchiveIq.cpp4
-rw-r--r--src/base/QXmppArchiveIq.h1
-rw-r--r--src/base/QXmppResultSet.cpp14
3 files changed, 7 insertions, 12 deletions
diff --git a/src/base/QXmppArchiveIq.cpp b/src/base/QXmppArchiveIq.cpp
index 068b4366..e2a1cc78 100644
--- a/src/base/QXmppArchiveIq.cpp
+++ b/src/base/QXmppArchiveIq.cpp
@@ -327,6 +327,7 @@ QXmppResultSetQuery QXmppArchiveListIq::resultSetQuery() const
{
return m_rsmQuery;
}
+
void QXmppArchiveListIq::setResultSetQuery(const QXmppResultSetQuery& rsm)
{
m_rsmQuery = rsm;
@@ -336,12 +337,12 @@ QXmppResultSetReply QXmppArchiveListIq::resultSetReply() const
{
return m_rsmReply;
}
+
void QXmppArchiveListIq::setResultSetReply(const QXmppResultSetReply& rsm)
{
m_rsmReply = rsm;
}
-
bool QXmppArchiveListIq::isArchiveListIq(const QDomElement &element)
{
QDomElement listElement = element.firstChildElement("list");
@@ -555,7 +556,6 @@ void QXmppArchiveRetrieveIq::parseElementFromChild(const QDomElement &element)
m_with = retrieveElement.attribute("with");
m_start = QXmppUtils::datetimeFromString(retrieveElement.attribute("start"));
m_rsm.parse(retrieveElement);
-
}
void QXmppArchiveRetrieveIq::toXmlElementFromChild(QXmlStreamWriter *writer) const
diff --git a/src/base/QXmppArchiveIq.h b/src/base/QXmppArchiveIq.h
index e9618616..e004d0c6 100644
--- a/src/base/QXmppArchiveIq.h
+++ b/src/base/QXmppArchiveIq.h
@@ -144,6 +144,7 @@ public:
QXmppResultSetQuery resultSetQuery() const;
void setResultSetQuery(const QXmppResultSetQuery &rsm);
+
QXmppResultSetReply resultSetReply() const;
void setResultSetReply(const QXmppResultSetReply &rsm);
diff --git a/src/base/QXmppResultSet.cpp b/src/base/QXmppResultSet.cpp
index cfed9e83..5d41e901 100644
--- a/src/base/QXmppResultSet.cpp
+++ b/src/base/QXmppResultSet.cpp
@@ -31,7 +31,8 @@
static const char *ns_rsm = "http://jabber.org/protocol/rsm";
QXmppResultSetQuery::QXmppResultSetQuery()
- : m_index(-1), m_max(-1)
+ : m_index(-1)
+ , m_max(-1)
{}
int QXmppResultSetQuery::max() const
@@ -110,10 +111,9 @@ void QXmppResultSetQuery::toXml(QXmlStreamWriter* writer) const
writer->writeEndElement();
}
-
-
QXmppResultSetReply::QXmppResultSetReply()
- : m_count(-1), m_index(-1)
+ : m_count(-1)
+ , m_index(-1)
{}
QString QXmppResultSetReply::first() const
@@ -161,7 +161,6 @@ bool QXmppResultSetReply::isNull() const
return m_count == -1 && m_index == -1 && m_first.isNull() && m_last.isNull();
}
-
void QXmppResultSetReply::parse(const QDomElement& element)
{
QDomElement setElement = (element.tagName() == "set") ? element : element.firstChildElement("set");
@@ -196,8 +195,3 @@ void QXmppResultSetReply::toXml(QXmlStreamWriter* writer) const
helperToXmlAddTextElement(writer, "count", QString::number(m_count));
writer->writeEndElement();
}
-
-
-
-
-