diff options
Diffstat (limited to 'tests/auto/core/qentity/tst_qentity.cpp')
-rw-r--r-- | tests/auto/core/qentity/tst_qentity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/core/qentity/tst_qentity.cpp b/tests/auto/core/qentity/tst_qentity.cpp index 7f5bddea2..eb1b03f43 100644 --- a/tests/auto/core/qentity/tst_qentity.cpp +++ b/tests/auto/core/qentity/tst_qentity.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include <QtTest/QTest> #include <Qt3DCore/qentity.h> @@ -586,7 +586,7 @@ void tst_Entity::checkComponentBookkeeping() // WHEN int sigCount = 0; QObject *sigSender = comp.data(); - connect(comp.data(), &QComponent::removedFromEntity, [&sigCount, sigSender](QEntity *) { + connect(comp.data(), &QComponent::removedFromEntity, this, [&sigCount, sigSender](QEntity *) { QComponent *c = qobject_cast<QComponent *>(sigSender); if (sigSender && c) sigCount++; // test the sender is still a QComponent when signal is emitted |