From 4c064c5f9b952cbc3791bad3b1573d7beda5b783 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 23 Apr 2020 16:27:35 +0200 Subject: [PATCH] QmlDesigner: Fix warnings about unused lambda cpatures Change-Id: I73e7aeed02527efd657df44232c13bb2e136f5ee Reviewed-by: Thomas Hartmann --- .../qml/qmlpuppet/qml2puppet/iconrenderer/iconrenderer.cpp | 2 +- .../components/componentcore/modelnodeoperations.cpp | 2 +- .../qmldesigner/components/curveeditor/detail/graphicsview.cpp | 2 +- .../qmldesigner/components/timelineeditor/easingcurvedialog.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/iconrenderer/iconrenderer.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/iconrenderer/iconrenderer.cpp index 48830caee64..74356906e08 100644 --- a/share/qtcreator/qml/qmlpuppet/qml2puppet/iconrenderer/iconrenderer.cpp +++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/iconrenderer/iconrenderer.cpp @@ -108,7 +108,7 @@ void IconRenderer::setupRender() if (m_contentItem->height() > containerItem->height()) containerItem->setHeight(m_contentItem->height()); - QTimer::singleShot(0, this, [this, containerItem, is3D]() { + QTimer::singleShot(0, this, [this, is3D]() { m_designerSupport.refFromEffectItem(m_quickView->rootObject(), false); QQuickDesignerSupportItems::disableNativeTextRendering(m_quickView->rootObject()); diff --git a/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp b/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp index 91ab85dda58..e00418fec8b 100644 --- a/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp +++ b/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp @@ -1045,7 +1045,7 @@ void addTransition(const SelectionContext &selectionContext) view->executeInTransaction("DesignerActionManager:addTransition", - [view, targetNode, &sourceNode](){ + [targetNode, &sourceNode](){ sourceNode.assignTargetItem(targetNode); }); } diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp index a11c978ae9d..e06b140e1a8 100644 --- a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp +++ b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp @@ -338,7 +338,7 @@ void GraphicsView::contextMenuEvent(QContextMenuEvent *event) QAction *insertKeyframeAction = menu.addAction(tr("Insert Keyframe")); connect(insertKeyframeAction, &QAction::triggered, insertKeyframes); - auto deleteKeyframes = [this, event] { m_scene->deleteSelectedKeyframes(); }; + auto deleteKeyframes = [this] { m_scene->deleteSelectedKeyframes(); }; QAction *deleteKeyframeAction = menu.addAction(tr("Delete Selected Keyframes")); connect(deleteKeyframeAction, &QAction::triggered, deleteKeyframes); diff --git a/src/plugins/qmldesigner/components/timelineeditor/easingcurvedialog.cpp b/src/plugins/qmldesigner/components/timelineeditor/easingcurvedialog.cpp index 91ab2339008..be33e7c1cb0 100644 --- a/src/plugins/qmldesigner/components/timelineeditor/easingcurvedialog.cpp +++ b/src/plugins/qmldesigner/components/timelineeditor/easingcurvedialog.cpp @@ -204,7 +204,7 @@ bool EasingCurveDialog::apply() } AbstractView *view = m_frames.first().view(); - return view->executeInTransaction("EasingCurveDialog::apply", [this, view](){ + return view->executeInTransaction("EasingCurveDialog::apply", [this](){ auto expression = m_splineEditor->easingCurve().toString(); for (const auto &frame : m_frames) frame.bindingProperty("easing.bezierCurve").setExpression(expression);