PD: modernize C++: use equals default

This commit is contained in:
wmayer
2023-08-22 12:28:24 +02:00
committed by wwmayer
parent e3809702d2
commit ca1cb21498
52 changed files with 61 additions and 182 deletions

View File

@@ -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)
{

View File

@@ -52,9 +52,7 @@ CoordinateSystem::CoordinateSystem()
Shape.setValue(builder.Shape());
}
CoordinateSystem::~CoordinateSystem()
{
}
CoordinateSystem::~CoordinateSystem() = default;
Base::Vector3d CoordinateSystem::getXAxis()
{

View File

@@ -65,9 +65,7 @@ Line::Line()
Support.touch();
}
Line::~Line()
{
}
Line::~Line() = default;
Base::Vector3d Line::getDirection() const
{

View File

@@ -66,9 +66,7 @@ Plane::Plane()
Shape.setValue(myShape);
}
Plane::~Plane()
{
}
Plane::~Plane() = default;
Base::Vector3d Plane::getNormal()
{

View File

@@ -43,9 +43,7 @@ Point::Point()
this->makeShape();
}
Point::~Point()
{
}
Point::~Point() = default;
void Point::onChanged(const App::Property* prop)
{

View File

@@ -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;
}

View File

@@ -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
{

View File

@@ -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;
};

View File

@@ -31,9 +31,7 @@ namespace PartDesign {
PROPERTY_SOURCE(PartDesign::Solid,PartDesign::Feature)
Solid::Solid()
{
}
Solid::Solid() = default;