Gui: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-23 16:29:19 +02:00
committed by wwmayer
parent 1cf1a90a17
commit 6beace8da6
79 changed files with 220 additions and 325 deletions

View File

@@ -34,13 +34,7 @@ VertexProperty::VertexProperty() :
visibleIcon(new QGraphicsPixmapItem()),
stateIcon(new QGraphicsPixmapItem()),
icon(new QGraphicsPixmapItem()),
text(new QGraphicsTextItem()),
row(0),
column(0),
topoSortIndex(0),
lastVisibleState(VisibilityState::None),
lastFeatureState(FeatureState::None),
dagVisible(true)
text(new QGraphicsTextItem())
{
//set z values.
this->rectangle->setZValue(-1000.0);
@@ -51,10 +45,7 @@ VertexProperty::VertexProperty() :
this->text->setZValue(0.0);
}
EdgeProperty::EdgeProperty() : relation(BranchTag::None)
{
}
EdgeProperty::EdgeProperty() = default;
bool Gui::DAG::hasRecord(const App::DocumentObject* dObjectIn, const GraphLinkContainer &containerIn)
{