From 3fad6bc5f942d439ba5f0729769d808a894a228f Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 10 Mar 2023 14:14:18 +0200 Subject: [PATCH] Fix MSVC warnings. --- src/libs/vtools/dialogs/tools/dialogrotation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/vtools/dialogs/tools/dialogrotation.cpp b/src/libs/vtools/dialogs/tools/dialogrotation.cpp index 6bbe64262..c9485ff5a 100644 --- a/src/libs/vtools/dialogs/tools/dialogrotation.cpp +++ b/src/libs/vtools/dialogs/tools/dialogrotation.cpp @@ -679,7 +679,7 @@ void DialogRotation::ShowSourceDetails(int row) { ui->labelAlias->setText(tr("Alias:")); - auto SetValue = [sourceItem](QComboBox *box, const QString &value, const QString &def) + auto SetValue = [](QComboBox *box, const QString &value, const QString &def) { box->blockSignals(true); @@ -701,7 +701,6 @@ void DialogRotation::ShowSourceDetails(int row) if (sourceItem.penStyle.isEmpty() || sourceItem.penStyle == TypeLineDefault) { - const QSharedPointer curve = data->GeometricObject(sourceItem.id); int index = ui->comboBoxPenStyle->currentIndex(); ui->comboBoxPenStyle->setItemText(index, '<' + tr("Default") + '>'); }