Fix warning about lambda capture
C++20 doesn't like capturing 'this' via '='
This commit is contained in:
parent
86abf8dbc3
commit
7744a941ce
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue