Fix MSVC warnings.

This commit is contained in:
Roman Telezhynskyi 2023-03-10 14:14:18 +02:00
parent 777fe6a296
commit 3fad6bc5f9

View File

@ -679,7 +679,7 @@ void DialogRotation::ShowSourceDetails(int row)
{ {
ui->labelAlias->setText(tr("Alias:")); 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); box->blockSignals(true);
@ -701,7 +701,6 @@ void DialogRotation::ShowSourceDetails(int row)
if (sourceItem.penStyle.isEmpty() || sourceItem.penStyle == TypeLineDefault) if (sourceItem.penStyle.isEmpty() || sourceItem.penStyle == TypeLineDefault)
{ {
const QSharedPointer<VAbstractCurve> curve = data->GeometricObject<VAbstractCurve>(sourceItem.id);
int index = ui->comboBoxPenStyle->currentIndex(); int index = ui->comboBoxPenStyle->currentIndex();
ui->comboBoxPenStyle->setItemText(index, '<' + tr("Default") + '>'); ui->comboBoxPenStyle->setItemText(index, '<' + tr("Default") + '>');
} }