Commit 96d0856e authored by Viktor Leonhardt's avatar Viktor Leonhardt
Browse files

cleaned up constructor and changed fastDelete to nullptr assignment

parent 1fc39b44
...@@ -29,19 +29,13 @@ ...@@ -29,19 +29,13 @@
vtkStandardNewMacro(vtkHyperTreeGridToUnstructuredGrid); vtkStandardNewMacro(vtkHyperTreeGridToUnstructuredGrid);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkHyperTreeGridToUnstructuredGrid::vtkHyperTreeGridToUnstructuredGrid() vtkHyperTreeGridToUnstructuredGrid::vtkHyperTreeGridToUnstructuredGrid() :
{ Points(nullptr),
// Create storage for corners of leaf cells Cells(nullptr),
this->Points = nullptr; Dimension(0),
Orientation(0),
// Create storage for untructured leaf cells Axes(nullptr)
this->Cells = nullptr; {}
// Default dimension is 0
this->Dimension = 0;
this->Orientation = 0;
this->Axes = nullptr;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkHyperTreeGridToUnstructuredGrid::~vtkHyperTreeGridToUnstructuredGrid() vtkHyperTreeGridToUnstructuredGrid::~vtkHyperTreeGridToUnstructuredGrid()
...@@ -121,8 +115,8 @@ int vtkHyperTreeGridToUnstructuredGrid::ProcessTrees( ...@@ -121,8 +115,8 @@ int vtkHyperTreeGridToUnstructuredGrid::ProcessTrees(
break; break;
} // switch ( this->Dimension ) } // switch ( this->Dimension )
this->Points->FastDelete(); this->Points = nullptr;
this->Cells->FastDelete(); this->Cells = nullptr;
return 1; return 1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment