Robot: modernize C++: use equals default

This commit is contained in:
wmayer
2023-08-22 11:51:21 +02:00
committed by wwmayer
parent f336ebd1e6
commit e3809702d2
30 changed files with 9 additions and 93 deletions

View File

@@ -52,8 +52,6 @@ public:
initialize("This module is the Robot module."); // register with Python
}
~Module() override {}
private:
Py::Object simulateToFile(const Py::Tuple& args)
{

View File

@@ -53,10 +53,6 @@ Edge2TracObject::Edge2TracObject()
NbrOfCluster = 0;
}
Edge2TracObject::~Edge2TracObject()
{
}
App::DocumentObjectExecReturn *Edge2TracObject::execute()
{
App::DocumentObject* link = Source.getValue();

View File

@@ -38,7 +38,6 @@ class RobotExport Edge2TracObject : public TrajectoryObject
public:
/// Constructor
Edge2TracObject();
~Edge2TracObject() override;
App::PropertyLinkSub Source;
App::PropertyFloatConstraint SegValue;

View File

@@ -36,13 +36,9 @@ using namespace Robot;
TYPESYSTEM_SOURCE(Robot::PropertyTrajectory , App::Property)
PropertyTrajectory::PropertyTrajectory()
{
}
PropertyTrajectory::PropertyTrajectory() = default;
PropertyTrajectory::~PropertyTrajectory()
{
}
PropertyTrajectory::~PropertyTrajectory() = default;
void PropertyTrajectory::setValue(const Trajectory& sh)
{

View File

@@ -76,11 +76,6 @@ Robot6Axis::Robot6Axis()
setKinematic(KukaIR500);
}
Robot6Axis::~Robot6Axis()
{
}
void Robot6Axis::setKinematic(const AxisDefinition KinDef[6])
{
Chain temp;

View File

@@ -54,7 +54,6 @@ class RobotExport Robot6Axis : public Base::Persistence
public:
Robot6Axis();
~Robot6Axis() override;
// from base class
unsigned int getMemSize () const override;

View File

@@ -48,14 +48,9 @@ using namespace KDL;
// FeatureView
//===========================================================================
RobotAlgos::RobotAlgos()
{
}
RobotAlgos::RobotAlgos() = default;
RobotAlgos::~RobotAlgos()
{
}
RobotAlgos::~RobotAlgos() = default;
void RobotAlgos::Test()
{

View File

@@ -60,10 +60,6 @@ RobotObject::RobotObject()
}
RobotObject::~RobotObject()
{
}
short RobotObject::mustExecute() const
{
return 0;

View File

@@ -39,7 +39,6 @@ class RobotExport RobotObject : public App::GeoFeature
public:
/// Constructor
RobotObject();
~RobotObject() override;
/// returns the type name of the ViewProvider
const char* getViewProviderName() const override {

View File

@@ -51,9 +51,7 @@ Simulation::Simulation(const Robot::Trajectory &Trac,Robot::Robot6Axis &Rob)
}
Simulation::~Simulation()
{
}
Simulation::~Simulation() = default;
void Simulation::step(double tick)
{

View File

@@ -39,10 +39,6 @@ TrajectoryCompound::TrajectoryCompound()
}
TrajectoryCompound::~TrajectoryCompound()
{
}
App::DocumentObjectExecReturn *TrajectoryCompound::execute()
{
const std::vector<DocumentObject*> &Tracs = Source.getValues();

View File

@@ -38,7 +38,6 @@ class RobotExport TrajectoryCompound : public TrajectoryObject
public:
/// Constructor
TrajectoryCompound();
~TrajectoryCompound() override;
App::PropertyLinkList Source;

View File

@@ -50,10 +50,6 @@ TrajectoryDressUpObject::TrajectoryDressUpObject()
}
TrajectoryDressUpObject::~TrajectoryDressUpObject()
{
}
App::DocumentObjectExecReturn* TrajectoryDressUpObject::execute()
{
Robot::Trajectory result;

View File

@@ -39,7 +39,6 @@ class RobotExport TrajectoryDressUpObject : public TrajectoryObject
public:
/// Constructor
TrajectoryDressUpObject();
~TrajectoryDressUpObject() override;
App::PropertyLink Source;
App::PropertySpeed Speed;

View File

@@ -42,10 +42,6 @@ TrajectoryObject::TrajectoryObject()
}
TrajectoryObject::~TrajectoryObject()
{
}
short TrajectoryObject::mustExecute() const
{
return 0;

View File

@@ -40,7 +40,6 @@ class RobotExport TrajectoryObject : public App::GeoFeature
public:
/// Constructor
TrajectoryObject();
~TrajectoryObject() override;
/// returns the type name of the ViewProvider
const char* getViewProviderName() const override {

View File

@@ -77,9 +77,7 @@ Waypoint::Waypoint()
{
}
Waypoint::~Waypoint()
{
}
Waypoint::~Waypoint() = default;
unsigned int Waypoint::getMemSize () const
{

View File

@@ -59,8 +59,6 @@ public:
initialize("This module is the RobotGui module."); // register with Python
}
~Module() override {}
private:
};

View File

@@ -52,11 +52,6 @@ TaskDlgEdge2Trac::TaskDlgEdge2Trac(Robot::Edge2TracObject *obj)
Content.push_back(select);
}
TaskDlgEdge2Trac::~TaskDlgEdge2Trac()
{
}
//==== calls from the TaskView ===============================================================

View File

@@ -41,7 +41,6 @@ class RobotGuiExport TaskDlgEdge2Trac : public Gui::TaskView::TaskDialog
public:
explicit TaskDlgEdge2Trac(Robot::Edge2TracObject *);
~TaskDlgEdge2Trac() override;
public:
/// is called the TaskView when the dialog is opened

View File

@@ -49,11 +49,6 @@ TaskDlgSimulate::TaskDlgSimulate(Robot::RobotObject *pcRobotObject,Robot::Trajec
Content.push_back(msg);
}
TaskDlgSimulate::~TaskDlgSimulate()
{
}
//==== calls from the TaskView ===============================================================

View File

@@ -42,7 +42,6 @@ class RobotGuiExport TaskDlgSimulate : public Gui::TaskView::TaskDialog
public:
TaskDlgSimulate(Robot::RobotObject *pcRobotObject,Robot::TrajectoryObject *pcTrajectoryObject);
~TaskDlgSimulate() override;
public:
/// is called the TaskView when the dialog is opened

View File

@@ -47,11 +47,6 @@ TaskDlgTrajectoryCompound::TaskDlgTrajectoryCompound(Robot::TrajectoryCompound *
Content.push_back(select);
}
TaskDlgTrajectoryCompound::~TaskDlgTrajectoryCompound()
{
}
//==== calls from the TaskView ===============================================================

View File

@@ -39,7 +39,6 @@ class RobotGuiExport TaskDlgTrajectoryCompound : public Gui::TaskView::TaskDialo
public:
TaskDlgTrajectoryCompound(Robot::TrajectoryCompound *);
~TaskDlgTrajectoryCompound() override;
public:
/// is called the TaskView when the dialog is opened

View File

@@ -43,11 +43,6 @@ TaskDlgTrajectoryDressUp::TaskDlgTrajectoryDressUp(Robot::TrajectoryDressUpObjec
Content.push_back(param);
}
TaskDlgTrajectoryDressUp::~TaskDlgTrajectoryDressUp()
{
}
//==== calls from the TaskView ===============================================================

View File

@@ -41,7 +41,6 @@ class RobotGuiExport TaskDlgTrajectoryDressUp : public Gui::TaskView::TaskDialog
public:
explicit TaskDlgTrajectoryDressUp(Robot::TrajectoryDressUpObject *);
~TaskDlgTrajectoryDressUp() override;
public:
/// is called the TaskView when the dialog is opened

View File

@@ -43,11 +43,6 @@ TaskWatcherRobot::TaskWatcherRobot()
}
TaskWatcherRobot::~TaskWatcherRobot()
{
}
//==== calls from the TaskView ===============================================================
bool TaskWatcherRobot::shouldShow()

View File

@@ -40,7 +40,6 @@ class RobotGuiExport TaskWatcherRobot : public Gui::TaskView::TaskWatcher
public:
TaskWatcherRobot();
~TaskWatcherRobot() override;
/// is called when the document or the selection changes.
bool shouldShow() override;

View File

@@ -98,9 +98,7 @@ TrajectorySimulate::TrajectorySimulate(Robot::RobotObject *pcRobotObject,Robot::
setTo();
}
TrajectorySimulate::~TrajectorySimulate()
{
}
TrajectorySimulate::~TrajectorySimulate() = default;
void TrajectorySimulate::setTo()
{

View File

@@ -56,13 +56,9 @@ using namespace RobotGui;
/// @namespace RobotGui @class Workbench
TYPESYSTEM_SOURCE(RobotGui::Workbench, Gui::StdWorkbench)
Workbench::Workbench()
{
}
Workbench::Workbench() = default;
Workbench::~Workbench()
{
}
Workbench::~Workbench() = default;
void Workbench::activated()
{