aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
author0xd34df00d <0xd34df00d@gmail.com>2019-12-22 19:46:13 -0500
committerLNJ <lnj@kaidan.im>2019-12-23 19:04:55 +0100
commite148045e90eb2ac12bb6ba426052606d5ac38c40 (patch)
tree3ceedcc9997d4c25ec8b14bafecd5faad8cb4ed1 /tests
parentee218192f6c25eba0c8f041ca2e53b7222881aa0 (diff)
downloadqxmpp-e148045e90eb2ac12bb6ba426052606d5ac38c40.tar.gz
Add a .clang-format somewhat close to the current style
Diffstat (limited to 'tests')
-rw-r--r--tests/util.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/util.h b/tests/util.h
index 91f59c61..e38b2744 100644
--- a/tests/util.h
+++ b/tests/util.h
@@ -26,7 +26,7 @@
#include <QtTest>
#include "QXmppPasswordChecker.h"
-template <class T>
+template<class T>
static void parsePacket(T &packet, const QByteArray &xml)
{
//qDebug() << "parsing" << xml;
@@ -36,7 +36,7 @@ static void parsePacket(T &packet, const QByteArray &xml)
packet.parse(element);
}
-template <class T>
+template<class T>
static void serializePacket(T &packet, const QByteArray &xml)
{
QBuffer buffer;
@@ -59,8 +59,7 @@ public:
/// Retrieves the password for the given username.
QXmppPasswordReply::Error getPassword(const QXmppPasswordRequest &request, QString &password) override
{
- if (m_credentials.contains(request.username()))
- {
+ if (m_credentials.contains(request.username())) {
password = m_credentials.value(request.username());
return QXmppPasswordReply::NoError;
} else {