--warning

Do not capture a variable that we don't use.
This commit is contained in:
Aleix Pol 2020-12-11 18:26:12 +01:00
parent f7cd5c5d4a
commit 8b461ff49f

View file

@ -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();
}