Mod: modernize C++: use equals default
This commit is contained in:
@@ -85,9 +85,7 @@ ExportOCAF::ExportOCAF(Handle(TDocStd_Document) h, bool explicitPlacement)
|
||||
}
|
||||
}
|
||||
|
||||
ExportOCAF::~ExportOCAF()
|
||||
{
|
||||
}
|
||||
ExportOCAF::~ExportOCAF() = default;
|
||||
|
||||
std::vector<App::DocumentObject*> ExportOCAF::filterPart(App::Part* part) const
|
||||
{
|
||||
|
||||
@@ -90,9 +90,7 @@ ImportOCAF::ImportOCAF(Handle(TDocStd_Document) h, App::Document* d, const std::
|
||||
aColorTool = XCAFDoc_DocumentTool::ColorTool(pDoc->Main());
|
||||
}
|
||||
|
||||
ImportOCAF::~ImportOCAF()
|
||||
{
|
||||
}
|
||||
ImportOCAF::~ImportOCAF() = default;
|
||||
|
||||
void ImportOCAF::tryPlacementFromLoc(App::GeoFeature* part, const TopLoc_Location& part_loc)
|
||||
{
|
||||
@@ -483,9 +481,7 @@ ImportXCAF::ImportXCAF(Handle(TDocStd_Document) h, App::Document* d, const std::
|
||||
hColors = XCAFDoc_DocumentTool::ColorTool(hdoc->Main());
|
||||
}
|
||||
|
||||
ImportXCAF::~ImportXCAF()
|
||||
{
|
||||
}
|
||||
ImportXCAF::~ImportXCAF() = default;
|
||||
|
||||
void ImportXCAF::loadShapes()
|
||||
{
|
||||
|
||||
@@ -185,9 +185,7 @@ ImportOCAF2::ImportOCAF2(Handle(TDocStd_Document) h, App::Document* d, const std
|
||||
setUseLinkGroup(options.useLinkGroup);
|
||||
}
|
||||
|
||||
ImportOCAF2::~ImportOCAF2()
|
||||
{
|
||||
}
|
||||
ImportOCAF2::~ImportOCAF2() = default;
|
||||
|
||||
ImportOCAFOptions ImportOCAF2::customImportOptions()
|
||||
{
|
||||
|
||||
@@ -40,14 +40,9 @@
|
||||
|
||||
using namespace Import;
|
||||
|
||||
StepShape::StepShape()
|
||||
{
|
||||
}
|
||||
StepShape::StepShape() = default;
|
||||
|
||||
|
||||
StepShape::~StepShape()
|
||||
{
|
||||
}
|
||||
StepShape::~StepShape() = default;
|
||||
|
||||
int StepShape::read(const char* fileName)
|
||||
{
|
||||
|
||||
@@ -465,9 +465,7 @@ ImpExpDxfWrite::ImpExpDxfWrite(std::string filepath) :
|
||||
setOptions();
|
||||
}
|
||||
|
||||
ImpExpDxfWrite::~ImpExpDxfWrite()
|
||||
{
|
||||
}
|
||||
ImpExpDxfWrite::~ImpExpDxfWrite() = default;
|
||||
|
||||
void ImpExpDxfWrite::setOptions()
|
||||
{
|
||||
|
||||
@@ -372,8 +372,6 @@ public:
|
||||
initialize("This module is the ImportGui module."); // register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
Py::Object insert(const Py::Tuple& args, const Py::Dict &kwds)
|
||||
{
|
||||
|
||||
@@ -31,13 +31,9 @@ using namespace ImportGui;
|
||||
/// @namespace ImportGui @class Workbench
|
||||
TYPESYSTEM_SOURCE(ImportGui::Workbench, Gui::StdWorkbench)
|
||||
|
||||
Workbench::Workbench()
|
||||
{
|
||||
}
|
||||
Workbench::Workbench() = default;
|
||||
|
||||
Workbench::~Workbench()
|
||||
{
|
||||
}
|
||||
Workbench::~Workbench() = default;
|
||||
|
||||
Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user