diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-09-05 20:37:05 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-09-06 00:46:56 +0200 |
| commit | 5f813f8a4bbe1e075daad7b3933829044befffb4 (patch) | |
| tree | 20102aa665b03cfb6dfe0c6ece94938320b6430e /src/client/QXmppConfiguration.cpp | |
| parent | 4c60b13e0b8011e4e0b093a690e939f3b23e2436 (diff) | |
| download | qxmpp-5f813f8a4bbe1e075daad7b3933829044befffb4.tar.gz | |
Reformat code
Diffstat (limited to 'src/client/QXmppConfiguration.cpp')
| -rw-r--r-- | src/client/QXmppConfiguration.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/client/QXmppConfiguration.cpp b/src/client/QXmppConfiguration.cpp index 0b51c1cc..a5ee0cd2 100644 --- a/src/client/QXmppConfiguration.cpp +++ b/src/client/QXmppConfiguration.cpp @@ -176,8 +176,9 @@ void QXmppConfiguration::setJid(const QString &jid) d->user = QXmppUtils::jidToUser(jid); d->domain = QXmppUtils::jidToDomain(jid); const QString resource = QXmppUtils::jidToResource(jid); - if (!resource.isEmpty()) + if (!resource.isEmpty()) { d->resource = resource; + } } /// Returns the host name. @@ -248,10 +249,11 @@ QString QXmppConfiguration::resource() const QString QXmppConfiguration::jid() const { - if (d->user.isEmpty()) + if (d->user.isEmpty()) { return d->domain; - else + } else { return jidBare() + "/" + d->resource; + } } /// Returns the bare jabber id (jid), without the resource identifier. @@ -262,10 +264,11 @@ QString QXmppConfiguration::jid() const QString QXmppConfiguration::jidBare() const { - if (d->user.isEmpty()) + if (d->user.isEmpty()) { return d->domain; - else + } else { return d->user + "@" + d->domain; + } } /// Returns the access token used for X-FACEBOOK-PLATFORM authentication. |
