Commit 7744a941 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix warning about lambda capture

C++20 doesn't like capturing 'this' via '='
parent 86abf8db
Pipeline #213901 failed with stage
in 13 minutes and 48 seconds
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment