summaryrefslogtreecommitdiffstats
path: root/tests/auto/integration/tst_integration.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-07-15 16:59:23 +0300
committerAhmad Samir <a.samirh78@gmail.com>2023-08-31 22:49:56 +0300
commita90907970628b75a414cceb98ccb33904fca4b36 (patch)
tree01fcb21f28c97344904b6af9976d0a539c163701 /tests/auto/integration/tst_integration.cpp
parentb08ed9e39a357f048d3e6096d54fd1be3544079e (diff)
Mark the whole repo with QT_NO_CONTEXTLESS_CONNECT
By adding it to the default build flags via .cmake.conf. This disables the 3-arg QObject::connect() overload: QObject::connect(sender, signal, functor) For details see: https://lists.qt-project.org/pipermail/development/2023-July/044141.html Task-number: QTBUG-116296 Change-Id: I34bd090549ec786734d917c466e1345207c29295 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/integration/tst_integration.cpp')
-rw-r--r--tests/auto/integration/tst_integration.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/integration/tst_integration.cpp b/tests/auto/integration/tst_integration.cpp
index d815e1a..ab47aad 100644
--- a/tests/auto/integration/tst_integration.cpp
+++ b/tests/auto/integration/tst_integration.cpp
@@ -561,7 +561,8 @@ private slots:
QScopedPointer<QRemoteObjectDynamicReplica> regDynamic, regDynamicNamed;
int regAdded = 0;
- connect(client->registry(), &QRemoteObjectRegistry::remoteObjectAdded, [&](QRemoteObjectSourceLocation entry)
+ connect(client->registry(), &QRemoteObjectRegistry::remoteObjectAdded,
+ this, [&](QRemoteObjectSourceLocation entry)
{
if (entry.first == QLatin1String("Engine")) {
++regAdded;
@@ -788,7 +789,7 @@ private slots:
QSignalSpy spy(this, &tst_Integration::forwardResult);
QScopedPointer<QRemoteObjectDynamicReplica> engine_dr(client->acquireDynamic(QStringLiteral("Engine")));
- connect(engine_dr.data(), &QRemoteObjectDynamicReplica::initialized, [&]()
+ connect(engine_dr.data(), &QRemoteObjectDynamicReplica::initialized, this, [&]()
{
const QMetaObject *metaObject = engine_dr->metaObject();
const int propIndex = metaObject->indexOfProperty("rpm");