fix: c++20 deprecate [=]

This commit is contained in:
ppphp
2024-03-30 13:52:02 +08:00
committed by wwmayer
parent 6fbd8916ab
commit da7ee06d67
16 changed files with 21 additions and 21 deletions

View File

@@ -108,10 +108,10 @@ TaskFemConstraintBearing::TaskFemConstraintBearing(ViewProviderFemConstraint* Co
qOverload<double>(&QDoubleSpinBox::valueChanged),
this,
&TaskFemConstraintBearing::onDistanceChanged);
connect(ui->buttonReference, &QPushButton::pressed, this, [=] {
connect(ui->buttonReference, &QPushButton::pressed, this, [this] {
onButtonReference(true);
});
connect(ui->buttonLocation, &QPushButton::pressed, this, [=] {
connect(ui->buttonLocation, &QPushButton::pressed, this, [this] {
onButtonLocation(true);
});
connect(ui->checkAxial, &QCheckBox::toggled, this, &TaskFemConstraintBearing::onCheckAxial);

View File

@@ -179,7 +179,7 @@ TaskFemConstraintFluidBoundary::TaskFemConstraintFluidBoundary(
this,
&TaskFemConstraintFluidBoundary::onThermalBoundaryTypeChanged);
connect(ui->buttonDirection, &QPushButton::pressed, this, [=] {
connect(ui->buttonDirection, &QPushButton::pressed, this, [this] {
onButtonDirection(true);
});
connect(ui->checkReverse,

View File

@@ -62,7 +62,7 @@ TaskFemConstraintGear::TaskFemConstraintGear(ViewProviderFemConstraint* Constrai
qOverload<double>(&QDoubleSpinBox::valueChanged),
this,
&TaskFemConstraintGear::onForceAngleChanged);
connect(ui->buttonDirection, &QPushButton::pressed, this, [=] {
connect(ui->buttonDirection, &QPushButton::pressed, this, [this] {
onButtonDirection(true);
});
connect(ui->checkReversed, &QCheckBox::toggled, this, &TaskFemConstraintGear::onCheckReversed);