Fix MSVC warnings.

This commit is contained in:
Roman Telezhynskyi 2023-03-10 20:20:35 +02:00
parent 3fad6bc5f9
commit e8621121b3

View File

@ -415,7 +415,7 @@ void DialogFlippingByAxis::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);
@ -437,7 +437,6 @@ void DialogFlippingByAxis::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") + '>');
} }