From 57f1b775197aed1d32e98b0299c0999339a7d5f6 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 2 Feb 2020 18:14:27 +0100 Subject: Run clang-format also on all cpp files --- src/base/QXmppByteStreamIq.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/base/QXmppByteStreamIq.cpp') diff --git a/src/base/QXmppByteStreamIq.cpp b/src/base/QXmppByteStreamIq.cpp index 2a8d3d8c..378364ff 100644 --- a/src/base/QXmppByteStreamIq.cpp +++ b/src/base/QXmppByteStreamIq.cpp @@ -63,7 +63,7 @@ QString QXmppByteStreamIq::StreamHost::zeroconf() const return m_zeroconf; } -void QXmppByteStreamIq::StreamHost::setZeroconf(const QString &zeroconf) +void QXmppByteStreamIq::StreamHost::setZeroconf(const QString &zeroconf) { m_zeroconf = zeroconf; } @@ -137,8 +137,7 @@ void QXmppByteStreamIq::parseElementFromChild(const QDomElement &element) m_mode = None; QDomElement hostElement = queryElement.firstChildElement("streamhost"); - while (!hostElement.isNull()) - { + while (!hostElement.isNull()) { StreamHost streamHost; streamHost.setHost(hostElement.attribute("host")); streamHost.setJid(hostElement.attribute("jid")); @@ -173,8 +172,7 @@ void QXmppByteStreamIq::toXmlElementFromChild(QXmlStreamWriter *writer) const } if (!m_activate.isEmpty()) helperToXmlAddTextElement(writer, "activate", m_activate); - if (!m_streamHostUsed.isEmpty()) - { + if (!m_streamHostUsed.isEmpty()) { writer->writeStartElement("streamhost-used"); helperToXmlAddAttribute(writer, "jid", m_streamHostUsed); writer->writeEndElement(); -- cgit v1.2.3