aboutsummaryrefslogtreecommitdiff
path: root/examples/example_6_rpcClient/rpcClient.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2020-02-02 18:14:27 +0100
committerLNJ <lnj@kaidan.im>2020-02-03 00:11:55 +0100
commit57f1b775197aed1d32e98b0299c0999339a7d5f6 (patch)
treece5702781e15f3a5c438ab153edf06f51a501b29 /examples/example_6_rpcClient/rpcClient.cpp
parent99b850a3008bbb03d3449d683adb87839f7d5c4b (diff)
downloadqxmpp-57f1b775197aed1d32e98b0299c0999339a7d5f6.tar.gz
Run clang-format also on all cpp files
Diffstat (limited to 'examples/example_6_rpcClient/rpcClient.cpp')
-rw-r--r--examples/example_6_rpcClient/rpcClient.cpp7
1 files changed, 3 insertions, 4 deletions
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);
}
-