From 0f521a0337ba14c90d36abe5a4cea2ba59c58d89 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Fri, 13 Dec 2024 11:36:48 +0100 Subject: [PATCH] Drop now unused lambda capture tokenProvider is unused inside the lambda since 638c9bd2595704606b53ba319c67568b479f9fc0, triggering .../qt5/qtwayland/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp:574:32: error: lambda capture 'tokenProvider' is not used [-Werror,-Wunused-lambda-capture] 574 | [this, tokenProvider](const QString &token) { in a local clang 19 build. Pick-to: 6.9 6.8 Change-Id: I69f7884afee46859c66a46edce3e7a8001c60e22 Reviewed-by: David Edmundson Reviewed-by: David Redondo --- .../plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp index 0369476cb56..1431e84b2b0 100644 --- a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp +++ b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp @@ -571,7 +571,7 @@ bool QWaylandXdgSurface::requestActivate() const auto tokenProvider = activation->requestXdgActivationToken( wlWindow->display(), wlWindow->wlSurface(), seat->serial(), appId); connect(tokenProvider, &QWaylandXdgActivationTokenV1::done, this, - [this, tokenProvider](const QString &token) { + [this](const QString &token) { m_shell->activation()->activate(token, window()->wlSurface()); }); connect(tokenProvider, &QWaylandXdgActivationTokenV1::done, tokenProvider, &QObject::deleteLater);