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 --- examples/example_6_rpcClient/rpcClient.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples/example_6_rpcClient') diff --git a/examples/example_6_rpcClient/rpcClient.cpp b/examples/example_6_rpcClient/rpcClient.cpp index c4868bc3..3b5e4082 100644 --- a/examples/example_6_rpcClient/rpcClient.cpp +++ b/examples/example_6_rpcClient/rpcClient.cpp @@ -39,7 +39,7 @@ rpcClient::rpcClient(QObject *parent) // observe incoming presences connect(this, &QXmppClient::presenceReceived, - this, &rpcClient::slotPresenceReceived); + this, &rpcClient::slotPresenceReceived); } rpcClient::~rpcClient() @@ -49,8 +49,8 @@ rpcClient::~rpcClient() void rpcClient::slotInvokeRemoteMethod() { QXmppRemoteMethodResult methodResult = m_rpcManager->callRemoteMethod( - m_remoteJid, "RemoteInterface.echoString", "This is a test" ); - if( methodResult.hasError ) + m_remoteJid, "RemoteInterface.echoString", "This is a test"); + if (methodResult.hasError) qDebug() << "Error:" << methodResult.code << methodResult.errorMessage; else qDebug() << "Result:" << methodResult.result; @@ -73,4 +73,3 @@ void rpcClient::slotPresenceReceived(const QXmppPresence &presence) m_remoteJid = presence.from(); QTimer::singleShot(1000, this, &rpcClient::slotInvokeRemoteMethod); } - -- cgit v1.2.3