From 8b461ff49fc578e9d850d52f625163aa052e782a Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 11 Dec 2020 18:26:12 +0100 Subject: [PATCH] --warning Do not capture a variable that we don't use. --- debug_console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug_console.cpp b/debug_console.cpp index e7c58055bd..a3d7e4673d 100644 --- a/debug_console.cpp +++ b/debug_console.cpp @@ -1275,7 +1275,7 @@ SurfaceTreeModel::SurfaceTreeModel(QObject *parent) watchSubsurfaces(c); } connect(workspace(), &Workspace::clientAdded, this, - [this, reset, watchSubsurfaces] (AbstractClient *c) { + [reset, watchSubsurfaces] (AbstractClient *c) { watchSubsurfaces(c); reset(); }