diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-02-11 18:24:16 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-02-12 00:26:32 +0000 |
commit | ecf0246981830008aedc6613d7fedd64971d432e (patch) | |
tree | 6086a37e386ffe18ecddc0eb58f9f294f134aa62 | |
parent | c17f0eaff0a50a31a969e33b14a29a945e7aa0a8 (diff) | |
download | qtwayland-ecf0246981830008aedc6613d7fedd64971d432e.tar.gz |
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.cpp | 2 |
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 02beb6af..e006f755 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"); }); |