Fix warning about lambda capture

C++20 doesn't like capturing 'this' via '='
This commit is contained in:
Nicolas Fella 2022-08-06 11:47:55 +02:00
parent 86abf8dbc3
commit 7744a941ce

View file

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