aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppStartTlsPacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/QXmppStartTlsPacket.cpp')
-rw-r--r--src/base/QXmppStartTlsPacket.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base/QXmppStartTlsPacket.cpp b/src/base/QXmppStartTlsPacket.cpp
index 60b2cf5b..3fab0ea0 100644
--- a/src/base/QXmppStartTlsPacket.cpp
+++ b/src/base/QXmppStartTlsPacket.cpp
@@ -43,8 +43,9 @@ void QXmppStartTlsPacket::setType(QXmppStartTlsPacket::Type type)
/// \cond
void QXmppStartTlsPacket::parse(const QDomElement &element)
{
- if (!QXmppStartTlsPacket::isStartTlsPacket(element))
+ if (!QXmppStartTlsPacket::isStartTlsPacket(element)) {
return;
+ }
if (auto index = STARTTLS_TYPES.indexOf(element.tagName()); index >= 0) {
m_type = Type(index);