summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-02-11 18:24:16 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-02-12 00:26:32 +0000
commitecf0246981830008aedc6613d7fedd64971d432e (patch)
tree6086a37e386ffe18ecddc0eb58f9f294f134aa62
parentc17f0eaff0a50a31a969e33b14a29a945e7aa0a8 (diff)
tst_inputcontext: fix warning about unused lambda capture
Says Clang 10: tst_inputcontext.cpp:194:11: warning: lambda capture 'this' is not used [-Wunused-lambda-capture] exec([this] { ^~~~ Code was added for 6.3, so only: Change-Id: I3818d1707e917c2c804d4ab0349e48667cf4a126 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit aade0a09c4a9a03db404175cb35fc73f9846f0b4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/client/inputcontext/tst_inputcontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/client/inputcontext/tst_inputcontext.cpp b/tests/auto/client/inputcontext/tst_inputcontext.cpp
index 02beb6af5..e006f7553 100644
--- a/tests/auto/client/inputcontext/tst_inputcontext.cpp
+++ b/tests/auto/client/inputcontext/tst_inputcontext.cpp
@@ -191,7 +191,7 @@ void tst_inputcontext::selectingTextInputProtocol()
QFETCH(QByteArray, clientProtocol);
QFETCH(QByteArray, expectedModule);
- exec([this] {
+ exec([] {
qputenv("QT_IM_MODULE", "qtvirtualkeyboard");
});