PD: modernize C++: use equals default
This commit is contained in:
@@ -40,8 +40,6 @@ public:
|
||||
initialize("This module is the PartDesign module."); // register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
Py::Object makeFilletArc(const Py::Tuple& args)
|
||||
{
|
||||
|
||||
@@ -52,9 +52,7 @@ CoordinateSystem::CoordinateSystem()
|
||||
Shape.setValue(builder.Shape());
|
||||
}
|
||||
|
||||
CoordinateSystem::~CoordinateSystem()
|
||||
{
|
||||
}
|
||||
CoordinateSystem::~CoordinateSystem() = default;
|
||||
|
||||
Base::Vector3d CoordinateSystem::getXAxis()
|
||||
{
|
||||
|
||||
@@ -65,9 +65,7 @@ Line::Line()
|
||||
Support.touch();
|
||||
}
|
||||
|
||||
Line::~Line()
|
||||
{
|
||||
}
|
||||
Line::~Line() = default;
|
||||
|
||||
Base::Vector3d Line::getDirection() const
|
||||
{
|
||||
|
||||
@@ -66,9 +66,7 @@ Plane::Plane()
|
||||
Shape.setValue(myShape);
|
||||
}
|
||||
|
||||
Plane::~Plane()
|
||||
{
|
||||
}
|
||||
Plane::~Plane() = default;
|
||||
|
||||
Base::Vector3d Plane::getNormal()
|
||||
{
|
||||
|
||||
@@ -43,9 +43,7 @@ Point::Point()
|
||||
this->makeShape();
|
||||
}
|
||||
|
||||
Point::~Point()
|
||||
{
|
||||
}
|
||||
Point::~Point() = default;
|
||||
|
||||
void Point::onChanged(const App::Property* prop)
|
||||
{
|
||||
|
||||
@@ -123,9 +123,7 @@ FeatureAdditivePython::FeatureAdditivePython()
|
||||
addSubType = Additive;
|
||||
}
|
||||
|
||||
FeatureAdditivePython::~FeatureAdditivePython()
|
||||
{
|
||||
}
|
||||
FeatureAdditivePython::~FeatureAdditivePython() = default;
|
||||
|
||||
|
||||
PROPERTY_SOURCE(PartDesign::FeatureSubtractivePython, PartDesign::FeatureAddSubPython)
|
||||
@@ -135,8 +133,6 @@ FeatureSubtractivePython::FeatureSubtractivePython()
|
||||
addSubType = Subtractive;
|
||||
}
|
||||
|
||||
FeatureSubtractivePython::~FeatureSubtractivePython()
|
||||
{
|
||||
}
|
||||
FeatureSubtractivePython::~FeatureSubtractivePython() = default;
|
||||
|
||||
}
|
||||
|
||||
@@ -49,9 +49,7 @@ App::PropertyQuantityConstraint::Constraints FeatureExtrude::signedLengthConstra
|
||||
double FeatureExtrude::maxAngle = 90 - Base::toDegrees<double>(Precision::Angular());
|
||||
App::PropertyAngle::Constraints FeatureExtrude::floatAngle = { -maxAngle, maxAngle, 1.0 };
|
||||
|
||||
FeatureExtrude::FeatureExtrude()
|
||||
{
|
||||
}
|
||||
FeatureExtrude::FeatureExtrude() = default;
|
||||
|
||||
short FeatureExtrude::mustExecute() const
|
||||
{
|
||||
|
||||
@@ -197,7 +197,7 @@ private:
|
||||
std::string thread_type;
|
||||
std::string cut_name;
|
||||
public:
|
||||
CutDimensionKey() {}
|
||||
CutDimensionKey() = default;
|
||||
CutDimensionKey(const std::string &t, const std::string &c);
|
||||
bool operator<(const CutDimensionKey &b) const;
|
||||
};
|
||||
|
||||
@@ -31,9 +31,7 @@ namespace PartDesign {
|
||||
|
||||
PROPERTY_SOURCE(PartDesign::Solid,PartDesign::Feature)
|
||||
|
||||
Solid::Solid()
|
||||
{
|
||||
}
|
||||
Solid::Solid() = default;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user