diff options
| author | Linus Jahn <lnj@kaidan.im> | 2020-02-02 18:14:27 +0100 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-02-03 00:11:55 +0100 |
| commit | 57f1b775197aed1d32e98b0299c0999339a7d5f6 (patch) | |
| tree | ce5702781e15f3a5c438ab153edf06f51a501b29 /examples/example_6_rpcClient/rpcClient.cpp | |
| parent | 99b850a3008bbb03d3449d683adb87839f7d5c4b (diff) | |
| download | qxmpp-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.cpp | 7 |
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); } - |
