diff options
| author | Linus Jahn <lnj@kaidan.im> | 2020-02-02 18:14:27 +0100 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-02-03 00:11:55 +0100 |
| commit | 57f1b775197aed1d32e98b0299c0999339a7d5f6 (patch) | |
| tree | ce5702781e15f3a5c438ab153edf06f51a501b29 /src/base/QXmppArchiveIq.cpp | |
| parent | 99b850a3008bbb03d3449d683adb87839f7d5c4b (diff) | |
| download | qxmpp-57f1b775197aed1d32e98b0299c0999339a7d5f6.tar.gz | |
Run clang-format also on all cpp files
Diffstat (limited to 'src/base/QXmppArchiveIq.cpp')
| -rw-r--r-- | src/base/QXmppArchiveIq.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/base/QXmppArchiveIq.cpp b/src/base/QXmppArchiveIq.cpp index 9f919c1d..290a3ef0 100644 --- a/src/base/QXmppArchiveIq.cpp +++ b/src/base/QXmppArchiveIq.cpp @@ -97,10 +97,8 @@ void QXmppArchiveChat::parse(const QDomElement &element) QDateTime timeAccu = m_start; QDomElement child = element.firstChildElement(); - while (!child.isNull()) - { - if ((child.tagName() == "from") || (child.tagName() == "to")) - { + while (!child.isNull()) { + if ((child.tagName() == "from") || (child.tagName() == "to")) { QXmppArchiveMessage message; message.setBody(child.firstChildElement("body").text()); timeAccu = timeAccu.addSecs(child.attribute("secs").toInt()); @@ -250,7 +248,7 @@ QXmppResultSetReply QXmppArchiveChatIq::resultSetReply() const /// /// This is used for paging through messages. -void QXmppArchiveChatIq::setResultSetReply(const QXmppResultSetReply& rsm) +void QXmppArchiveChatIq::setResultSetReply(const QXmppResultSetReply &rsm) { m_rsmReply = rsm; } @@ -361,7 +359,7 @@ QXmppResultSetQuery QXmppArchiveListIq::resultSetQuery() const /// /// This is used for paging through conversations. -void QXmppArchiveListIq::setResultSetQuery(const QXmppResultSetQuery& rsm) +void QXmppArchiveListIq::setResultSetQuery(const QXmppResultSetQuery &rsm) { m_rsmQuery = rsm; } @@ -379,7 +377,7 @@ QXmppResultSetReply QXmppArchiveListIq::resultSetReply() const /// /// This is used for paging through conversations. -void QXmppArchiveListIq::setResultSetReply(const QXmppResultSetReply& rsm) +void QXmppArchiveListIq::setResultSetReply(const QXmppResultSetReply &rsm) { m_rsmReply = rsm; } @@ -402,10 +400,8 @@ void QXmppArchiveListIq::parseElementFromChild(const QDomElement &element) m_rsmReply.parse(listElement); QDomElement child = listElement.firstChildElement(); - while (!child.isNull()) - { - if (child.tagName() == "chat") - { + while (!child.isNull()) { + if (child.tagName() == "chat") { QXmppArchiveChat chat; chat.parse(child); m_chats << chat; @@ -585,7 +581,7 @@ QXmppResultSetQuery QXmppArchiveRetrieveIq::resultSetQuery() const /// /// This is used for paging through messages. -void QXmppArchiveRetrieveIq::setResultSetQuery(const QXmppResultSetQuery& rsm) +void QXmppArchiveRetrieveIq::setResultSetQuery(const QXmppResultSetQuery &rsm) { m_rsmQuery = rsm; } |
