diff --git a/src/Mod/PartDesign/App/FeatureChamfer.cpp b/src/Mod/PartDesign/App/FeatureChamfer.cpp index 7980872c15..f594649e5f 100644 --- a/src/Mod/PartDesign/App/FeatureChamfer.cpp +++ b/src/Mod/PartDesign/App/FeatureChamfer.cpp @@ -53,8 +53,8 @@ using namespace PartDesign; PROPERTY_SOURCE(PartDesign::Chamfer, PartDesign::DressUp) const char* ChamferTypeEnums[] = {"Equal distance", "Two distances", "Distance and Angle", NULL}; -const App::PropertyQuantityConstraint::Constraints floatSize = {0.0,FLT_MAX,0.1}; -const App::PropertyAngle::Constraints floatAngle = {0.0,180.0,1.0}; +const App::PropertyQuantityConstraint::Constraints Chamfer::floatSize = {0.0, FLT_MAX, 0.1}; +const App::PropertyAngle::Constraints Chamfer::floatAngle = {0.0, 180.0, 1.0}; static App::DocumentObjectExecReturn *validateParameters(int chamferType, double size, double size2, double angle); diff --git a/src/Mod/PartDesign/App/FeatureChamfer.h b/src/Mod/PartDesign/App/FeatureChamfer.h index 6a5ec442d9..e36e708d1d 100644 --- a/src/Mod/PartDesign/App/FeatureChamfer.h +++ b/src/Mod/PartDesign/App/FeatureChamfer.h @@ -62,6 +62,8 @@ public: protected: void Restore(Base::XMLReader &reader) override; + static const App::PropertyQuantityConstraint::Constraints floatSize; + static const App::PropertyAngle::Constraints floatAngle; }; } //namespace Part diff --git a/src/Mod/PartDesign/App/FeaturePolarPattern.cpp b/src/Mod/PartDesign/App/FeaturePolarPattern.cpp index e0b387d91a..0dfab84734 100644 --- a/src/Mod/PartDesign/App/FeaturePolarPattern.cpp +++ b/src/Mod/PartDesign/App/FeaturePolarPattern.cpp @@ -48,8 +48,8 @@ namespace PartDesign { PROPERTY_SOURCE(PartDesign::PolarPattern, PartDesign::Transformed) -const App::PropertyIntegerConstraint::Constraints intOccurrences = { 1, INT_MAX, 1 }; -const App::PropertyAngle::Constraints floatAngle = { Base::toDegrees(Precision::Angular()), 360.0, 1.0 }; +const App::PropertyIntegerConstraint::Constraints PolarPattern::intOccurrences = { 1, INT_MAX, 1 }; +const App::PropertyAngle::Constraints PolarPattern::floatAngle = { Base::toDegrees(Precision::Angular()), 360.0, 1.0 }; PolarPattern::PolarPattern() { diff --git a/src/Mod/PartDesign/App/FeaturePolarPattern.h b/src/Mod/PartDesign/App/FeaturePolarPattern.h index 8d0d5ebab3..0ade352ee0 100644 --- a/src/Mod/PartDesign/App/FeaturePolarPattern.h +++ b/src/Mod/PartDesign/App/FeaturePolarPattern.h @@ -68,6 +68,8 @@ public: protected: virtual void handleChangedPropertyType(Base::XMLReader& reader, const char* TypeName, App::Property* prop); + static const App::PropertyIntegerConstraint::Constraints intOccurrences; + static const App::PropertyAngle::Constraints floatAngle; }; } //namespace PartDesign