Fix MSVC warnings.

This commit is contained in:
Roman Telezhynskyi 2023-03-10 07:40:27 +02:00
parent 09d09b5a87
commit 7d759ec92b

View File

@ -442,7 +442,7 @@ void DialogFlippingByLine::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);
@ -463,8 +463,7 @@ void DialogFlippingByLine::ShowSourceDetails(int row)
SetValue(ui->comboBoxPenStyle, sourceItem.penStyle, TypeLineDefault);
if (sourceItem.penStyle.isEmpty() || sourceItem.penStyle == TypeLineDefault)
{
const QSharedPointer<VAbstractCurve> curve = data->GeometricObject<VAbstractCurve>(sourceItem.id);
{;
int index = ui->comboBoxPenStyle->currentIndex();
ui->comboBoxPenStyle->setItemText(index, '<' + tr("Default") + '>');
}