aboutsummaryrefslogtreecommitdiff
path: root/examples/example_1_echoClient/example_1_echoClient.cpp
diff options
context:
space:
mode:
authorJBB <jbb.prv@gmx.de>2020-01-20 00:19:38 +0100
committerLNJ <lnj@kaidan.im>2020-01-20 00:19:38 +0100
commit8557bc3a605e5d2b1a7dae5999501b19c1c99b58 (patch)
treef17fefa61a26e01c99884c7d3e458b8ea70b181b /examples/example_1_echoClient/example_1_echoClient.cpp
parentcccb7675e0eb9d411c736d1ff3f189fb75ef33dd (diff)
Port majority of old-style connects (#237)
This provides more type safety and is future-proof.
Diffstat (limited to 'examples/example_1_echoClient/example_1_echoClient.cpp')
-rw-r--r--examples/example_1_echoClient/example_1_echoClient.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/example_1_echoClient/example_1_echoClient.cpp b/examples/example_1_echoClient/example_1_echoClient.cpp
index a89e6d3d..86c33049 100644
--- a/examples/example_1_echoClient/example_1_echoClient.cpp
+++ b/examples/example_1_echoClient/example_1_echoClient.cpp
@@ -32,10 +32,7 @@
echoClient::echoClient(QObject *parent)
: QXmppClient(parent)
{
- bool check = connect(this, SIGNAL(messageReceived(QXmppMessage)),
- SLOT(messageReceived(QXmppMessage)));
- Q_ASSERT(check);
- Q_UNUSED(check);
+ connect(this, &QXmppClient::messageReceived, this, &echoClient::messageReceived);
}
echoClient::~echoClient()