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/QXmppIq.cpp | |
| parent | 99b850a3008bbb03d3449d683adb87839f7d5c4b (diff) | |
| download | qxmpp-57f1b775197aed1d32e98b0299c0999339a7d5f6.tar.gz | |
Run clang-format also on all cpp files
Diffstat (limited to 'src/base/QXmppIq.cpp')
| -rw-r--r-- | src/base/QXmppIq.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/base/QXmppIq.cpp b/src/base/QXmppIq.cpp index 4d862378..5cc51791 100644 --- a/src/base/QXmppIq.cpp +++ b/src/base/QXmppIq.cpp @@ -28,7 +28,7 @@ #include <QDomElement> #include <QXmlStreamWriter> -static const char* iq_types[] = { +static const char *iq_types[] = { "error", "get", "set", @@ -46,8 +46,7 @@ public: /// \param type QXmppIq::QXmppIq(QXmppIq::Type type) - : QXmppStanza() - , d(new QXmppIqPrivate) + : QXmppStanza(), d(new QXmppIqPrivate) { d->type = type; generateAndSetNextId(); @@ -56,8 +55,7 @@ QXmppIq::QXmppIq(QXmppIq::Type type) /// Constructs a copy of \a other. QXmppIq::QXmppIq(const QXmppIq &other) - : QXmppStanza(other) - , d(other.d) + : QXmppStanza(other), d(other.d) { } @@ -67,7 +65,7 @@ QXmppIq::~QXmppIq() /// Assigns \a other to this IQ. -QXmppIq& QXmppIq::operator=(const QXmppIq &other) +QXmppIq &QXmppIq::operator=(const QXmppIq &other) { QXmppStanza::operator=(other); d = other.d; @@ -119,15 +117,14 @@ void QXmppIq::parseElementFromChild(const QDomElement &element) { QXmppElementList extensions; QDomElement itemElement = element.firstChildElement(); - while (!itemElement.isNull()) - { + while (!itemElement.isNull()) { extensions.append(QXmppElement(itemElement)); itemElement = itemElement.nextSiblingElement(); } setExtensions(extensions); } -void QXmppIq::toXml( QXmlStreamWriter *xmlWriter ) const +void QXmppIq::toXml(QXmlStreamWriter *xmlWriter) const { xmlWriter->writeStartElement("iq"); @@ -140,7 +137,7 @@ void QXmppIq::toXml( QXmlStreamWriter *xmlWriter ) const xmlWriter->writeEndElement(); } -void QXmppIq::toXmlElementFromChild( QXmlStreamWriter *writer ) const +void QXmppIq::toXmlElementFromChild(QXmlStreamWriter *writer) const { for (const QXmppElement &extension : extensions()) extension.toXml(writer); |
