PD: modernize C++: use default member init
This commit is contained in:
@@ -43,7 +43,6 @@ namespace PartDesign {
|
||||
PROPERTY_SOURCE(PartDesign::FeatureAddSub, PartDesign::Feature)
|
||||
|
||||
FeatureAddSub::FeatureAddSub()
|
||||
: addSubType(Additive)
|
||||
{
|
||||
ADD_PROPERTY(AddSubShape,(TopoDS_Shape()));
|
||||
ADD_PROPERTY_TYPE(Refine,(0),"Part Design",(App::PropertyType)(App::Prop_None),"Refine shape (clean up redundant edges) after adding/subtracting");
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
App::PropertyBool Refine;
|
||||
|
||||
protected:
|
||||
Type addSubType;
|
||||
Type addSubType{Additive};
|
||||
|
||||
TopoDS_Shape refineShapeIfActive(const TopoDS_Shape&) const;
|
||||
};
|
||||
|
||||
@@ -61,7 +61,6 @@ const App::PropertyQuantityConstraint::Constraints quantityRangeZero = { 0.0, FL
|
||||
PROPERTY_SOURCE_WITH_EXTENSIONS(PartDesign::FeaturePrimitive, PartDesign::FeatureAddSub)
|
||||
|
||||
FeaturePrimitive::FeaturePrimitive()
|
||||
: primitiveType(Box)
|
||||
{
|
||||
Part::AttachExtension::initExtension(this);
|
||||
}
|
||||
|
||||
@@ -634,7 +634,6 @@ private:
|
||||
|
||||
SketchWorkflow::SketchWorkflow(Gui::Document* document)
|
||||
: guidocument(document)
|
||||
, activeBody(nullptr)
|
||||
{
|
||||
appdocument = guidocument->getDocument();
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ private:
|
||||
private:
|
||||
Gui::Document* guidocument;
|
||||
App::Document* appdocument;
|
||||
PartDesign::Body* activeBody;
|
||||
PartDesign::Body* activeBody{nullptr};
|
||||
};
|
||||
|
||||
} // namespace PartDesignGui
|
||||
|
||||
@@ -50,7 +50,6 @@ using namespace PartDesignGui;
|
||||
PROPERTY_SOURCE_WITH_EXTENSIONS(PartDesignGui::ViewProvider, PartGui::ViewProviderPart)
|
||||
|
||||
ViewProvider::ViewProvider()
|
||||
: oldTip(nullptr), isSetTipIcon(false)
|
||||
{
|
||||
PartGui::ViewProviderAttachExtension::initExtension(this);
|
||||
}
|
||||
|
||||
@@ -86,8 +86,8 @@ protected:
|
||||
virtual TaskDlgFeatureParameters *getEditDialog();
|
||||
|
||||
std::string oldWb;
|
||||
App::DocumentObject* oldTip;
|
||||
bool isSetTipIcon;
|
||||
App::DocumentObject* oldTip{nullptr};
|
||||
bool isSetTipIcon{false};
|
||||
};
|
||||
|
||||
using ViewProviderPython = Gui::ViewProviderPythonFeatureT<ViewProvider>;
|
||||
|
||||
@@ -35,10 +35,7 @@ class PartDesignGuiExport ViewProviderTransformed : public ViewProvider
|
||||
PROPERTY_HEADER_WITH_OVERRIDE(PartDesignGui::ViewProviderTransformed);
|
||||
|
||||
public:
|
||||
/// constructor
|
||||
ViewProviderTransformed()
|
||||
: pcRejectedRoot(nullptr) {}
|
||||
/// destructor
|
||||
ViewProviderTransformed() = default;
|
||||
~ViewProviderTransformed() override = default;
|
||||
|
||||
// The feature name of the subclass
|
||||
@@ -63,7 +60,7 @@ protected:
|
||||
bool checkDlgOpen(TaskDlgTransformedParameters* transformedDlg);
|
||||
|
||||
// node for the representation of rejected repetitions
|
||||
SoGroup * pcRejectedRoot;
|
||||
SoGroup * pcRejectedRoot{nullptr};
|
||||
|
||||
QString diagMessage;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user