fix warnings, remove unused captured variables

This commit is contained in:
Aleix Pol 2019-12-12 11:33:40 +01:00
parent 8f7b2c9ae0
commit e32d28e548

View File

@ -52,13 +52,13 @@ ColorScope::ColorScope(QQuickItem *parent, QObject *parentObject)
if (parentObject && qobject_cast<QQuickItem *>(parentObject)) {
connect(static_cast<QQuickItem *>(parentObject), &QQuickItem::windowChanged,
this, [this, parentObject]() {
this, [this]() {
findParentScope();
checkColorGroupChanged();
});
connect(static_cast<QQuickItem *>(parentObject), &QQuickItem::parentChanged,
this, [this, parentObject]() {
this, [this]() {
findParentScope();
checkColorGroupChanged();
});