From 7744a941ced34d3ce98825a6833681601370f26d Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 6 Aug 2022 11:47:55 +0200 Subject: [PATCH] Fix warning about lambda capture C++20 doesn't like capturing 'this' via '=' --- src/wayland/server_decoration_palette_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/server_decoration_palette_interface.cpp b/src/wayland/server_decoration_palette_interface.cpp index 2b53637dc1..2b017d5a13 100644 --- a/src/wayland/server_decoration_palette_interface.cpp +++ b/src/wayland/server_decoration_palette_interface.cpp @@ -47,7 +47,7 @@ void ServerSideDecorationPaletteManagerInterfacePrivate::org_kde_kwin_server_dec auto palette = new ServerSideDecorationPaletteInterface(s, palette_resource); palettes.append(palette); - QObject::connect(palette, &QObject::destroyed, q, [=]() { + QObject::connect(palette, &QObject::destroyed, q, [this, palette]() { palettes.removeOne(palette); }); Q_EMIT q->paletteCreated(palette);