Surface: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-22 17:18:33 +02:00
committed by wwmayer
parent 88784694f6
commit 6bdff0f477
4 changed files with 4 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ const App::PropertyIntegerConstraint::Constraints EndContinuityConstraint = {0,
PROPERTY_SOURCE(Surface::FeatureBlendCurve, Part::Spline)
FeatureBlendCurve::FeatureBlendCurve() : lockOnChangeMutex(false)
FeatureBlendCurve::FeatureBlendCurve()
{
ADD_PROPERTY_TYPE(StartEdge, (nullptr), "FirstEdge", App::Prop_None, "");
ADD_PROPERTY_TYPE(StartContinuity, (2), "FirstEdge", App::Prop_None, "");

View File

@@ -63,7 +63,7 @@ public:
private:
BlendPoint GetBlendPoint(App::PropertyLinkSub &link, App::PropertyFloatConstraint &param, App::PropertyIntegerConstraint &Continuity);
double RelativeToRealParameters(double, double, double);
bool lockOnChangeMutex;
bool lockOnChangeMutex{false};
protected:
void onChanged(const App::Property *prop) override;

View File

@@ -47,7 +47,7 @@ const App::PropertyFloatConstraint::Constraints ToleranceRange = {0.0, 10.0, 0.0
const App::PropertyFloatConstraint::Constraints ExtendRange = {-0.5, 10.0, 0.01};
PROPERTY_SOURCE(Surface::Extend, Part::Spline)
Extend::Extend() : lockOnChangeMutex(false)
Extend::Extend()
{
ADD_PROPERTY(Face,(nullptr));
Face.setScope(App::LinkScope::Global);

View File

@@ -64,7 +64,7 @@ protected:
const char *PropName) override;
private:
bool lockOnChangeMutex;
bool lockOnChangeMutex{false};
};
}//Namespace Surface