Commit 84ec1d57 authored by Sean McBride's avatar Sean McBride

Applied clang-tidy modernize-use-equals-default fixes

This required some clean up, because the automatic changes borked a couple of files, but mostly resulted in stupid whitespacing. A few find/replace fixed things up.

There are now some duplicate semis because it did changes like:

  ~AMRIndexIterator() override{};
to
  ~AMRIndexIterator() override= default;;

Note there was a pointless semi before, which clang-tidy didn’t expect / account for.

My next commit will remove them.
parent ce450a31
......@@ -41,9 +41,7 @@ public:
return new vtkTFCallback;
}
vtkTFCallback()
{
}
vtkTFCallback() = default;
void Execute( vtkObject *caller, unsigned long event,
void *vtkNotUsed(callData) ) override
......
......@@ -38,9 +38,7 @@ vtkAxisExtended::vtkAxisExtended()
this->IsAxisVertical = false;
}
vtkAxisExtended::~vtkAxisExtended()
{
}
vtkAxisExtended::~vtkAxisExtended() = default;
// This method return a value to make step sizes corresponding to low q and j values more preferable
double vtkAxisExtended::Simplicity(int qIndex, int qLength, int j, double lmin,
......
......@@ -47,9 +47,7 @@ vtkCategoryLegend::vtkCategoryLegend()
}
//-----------------------------------------------------------------------------
vtkCategoryLegend::~vtkCategoryLegend()
{
}
vtkCategoryLegend::~vtkCategoryLegend() = default;
//-----------------------------------------------------------------------------
bool vtkCategoryLegend::Paint(vtkContext2D* painter)
......
......@@ -55,9 +55,7 @@ public:
this->YAxis->SetPoint1(0, 0);
this->YAxis->SetTitle("Y");
}
~Private()
{
}
~Private() = default;
vtkSmartPointer<vtkPlotBox> Plot;
std::vector<float> XPosition;
vtkNew<vtkTransform2D> Transform;
......
......@@ -48,9 +48,7 @@ vtkChartHistogram2D::vtkChartHistogram2D()
}
//-----------------------------------------------------------------------------
vtkChartHistogram2D::~vtkChartHistogram2D()
{
}
vtkChartHistogram2D::~vtkChartHistogram2D() = default;
//-----------------------------------------------------------------------------
void vtkChartHistogram2D::Update()
......
......@@ -41,9 +41,7 @@ public:
Private() : Point(0, 0)
{
}
~Private()
{
}
~Private() = default;
vtkVector2f Point;
vtkWeakPointer<vtkChart> Chart;
......
......@@ -29,7 +29,7 @@ class vtkChartMatrix::PIMPL
{
public:
PIMPL() : Geometry(0, 0) {}
~PIMPL() {}
~PIMPL() = default;
// Container for the vtkChart objects that make up the matrix.
std::vector< vtkSmartPointer<vtkChart> > Charts;
......
......@@ -33,9 +33,7 @@
class vtkChartPiePrivate
{
public:
vtkChartPiePrivate()
{
}
vtkChartPiePrivate() = default;
vtkSmartPointer<vtkPlotPie> Plot;
};
......
......@@ -73,9 +73,7 @@ vtkChartXYZ::vtkChartXYZ() : Geometry(0, 0, 10, 10), IsX(false), Angle(0)
}
//-----------------------------------------------------------------------------
vtkChartXYZ::~vtkChartXYZ()
{
}
vtkChartXYZ::~vtkChartXYZ() = default;
//-----------------------------------------------------------------------------
void vtkChartXYZ::SetAngle(double angle)
......
......@@ -56,9 +56,7 @@ vtkColorLegend::vtkColorLegend()
}
//-----------------------------------------------------------------------------
vtkColorLegend::~vtkColorLegend()
{
}
vtkColorLegend::~vtkColorLegend() = default;
//-----------------------------------------------------------------------------
void vtkColorLegend::PrintSelf(ostream &os, vtkIndent indent)
......
......@@ -56,9 +56,7 @@ vtkContextArea::vtkContextArea()
}
//------------------------------------------------------------------------------
vtkContextArea::~vtkContextArea()
{
}
vtkContextArea::~vtkContextArea() = default;
//------------------------------------------------------------------------------
void vtkContextArea::InitializeDrawArea()
......
......@@ -52,9 +52,7 @@ vtkPlot3D::vtkPlot3D()
}
//-----------------------------------------------------------------------------
vtkPlot3D::~vtkPlot3D()
{
}
vtkPlot3D::~vtkPlot3D() = default;
//-----------------------------------------------------------------------------
void vtkPlot3D::PrintSelf(ostream &os, vtkIndent indent)
......
......@@ -46,9 +46,7 @@ class vtkPlotBox::Private :
public std::vector< std::vector<double> >
{
public:
Private()
{
}
Private() = default;
};
//-----------------------------------------------------------------------------
......
......@@ -35,9 +35,7 @@ vtkPlotHistogram2D::vtkPlotHistogram2D()
}
//-----------------------------------------------------------------------------
vtkPlotHistogram2D::~vtkPlotHistogram2D()
{
}
vtkPlotHistogram2D::~vtkPlotHistogram2D() = default;
void vtkPlotHistogram2D::Update()
{
......
......@@ -34,9 +34,7 @@ vtkPlotLine::vtkPlotLine()
}
//-----------------------------------------------------------------------------
vtkPlotLine::~vtkPlotLine()
{
}
vtkPlotLine::~vtkPlotLine() = default;
//-----------------------------------------------------------------------------
bool vtkPlotLine::Paint(vtkContext2D *painter)
......
......@@ -25,14 +25,10 @@
vtkStandardNewMacro(vtkPlotLine3D);
//-----------------------------------------------------------------------------
vtkPlotLine3D::vtkPlotLine3D()
{
}
vtkPlotLine3D::vtkPlotLine3D() = default;
//-----------------------------------------------------------------------------
vtkPlotLine3D::~vtkPlotLine3D()
{
}
vtkPlotLine3D::~vtkPlotLine3D() = default;
//-----------------------------------------------------------------------------
bool vtkPlotLine3D::Paint(vtkContext2D *painter)
......
......@@ -35,9 +35,7 @@ vtkPlotPoints3D::vtkPlotPoints3D()
}
//-----------------------------------------------------------------------------
vtkPlotPoints3D::~vtkPlotPoints3D()
{
}
vtkPlotPoints3D::~vtkPlotPoints3D() = default;
//-----------------------------------------------------------------------------
void vtkPlotPoints3D::PrintSelf(ostream &os, vtkIndent indent)
......
......@@ -42,9 +42,7 @@ vtkPlotSurface::vtkPlotSurface()
}
//-----------------------------------------------------------------------------
vtkPlotSurface::~vtkPlotSurface()
{
}
vtkPlotSurface::~vtkPlotSurface() = default;
//-----------------------------------------------------------------------------
void vtkPlotSurface::PrintSelf(ostream &os, vtkIndent indent)
......
......@@ -117,7 +117,7 @@ public:
this->LabelFont->SetColor(0.0, 0.0, 0.0);
this->LabelFont->SetOpacity(1.0);
}
~pimplChartSetting() {}
~pimplChartSetting() = default;
int MarkerStyle;
float MarkerSize;
......
......@@ -34,9 +34,7 @@ public:
this->Init();
}
virtual ~vtkNamedColorsDataStore()
{
}
virtual ~vtkNamedColorsDataStore() = default;
public:
//-----------------------------------------------------------------------------
......
......@@ -22,9 +22,7 @@ vtkStandardNewMacro(vtkCardinalSpline);
//----------------------------------------------------------------------------
// Construct a Cardinal Spline.
vtkCardinalSpline::vtkCardinalSpline ()
{
}
vtkCardinalSpline::vtkCardinalSpline () = default;
//----------------------------------------------------------------------------
// Evaluate a 1D Spline
......
......@@ -38,9 +38,7 @@ vtkParametricBohemianDome::vtkParametricBohemianDome() :
}
//----------------------------------------------------------------------------//
vtkParametricBohemianDome::~vtkParametricBohemianDome()
{
}
vtkParametricBohemianDome::~vtkParametricBohemianDome() = default;
//----------------------------------------------------------------------------//
void vtkParametricBohemianDome::Evaluate(double uvw[3], double Pt[3],
......
......@@ -35,9 +35,7 @@ vtkParametricBour::vtkParametricBour()
}
//----------------------------------------------------------------------------//
vtkParametricBour::~vtkParametricBour()
{
}
vtkParametricBour::~vtkParametricBour() = default;
//----------------------------------------------------------------------------//
void vtkParametricBour::Evaluate(double uvw[3], double Pt[3],
......
......@@ -38,9 +38,7 @@ vtkParametricBoy::vtkParametricBoy()
}
//----------------------------------------------------------------------------
vtkParametricBoy::~vtkParametricBoy()
{
}
vtkParametricBoy::~vtkParametricBoy() = default;
//----------------------------------------------------------------------------
void vtkParametricBoy::Evaluate(double uvw[3], double Pt[3],
......
......@@ -35,9 +35,7 @@ vtkParametricCatalanMinimal::vtkParametricCatalanMinimal()
}
//----------------------------------------------------------------------------//
vtkParametricCatalanMinimal::~vtkParametricCatalanMinimal()
{
}
vtkParametricCatalanMinimal::~vtkParametricCatalanMinimal() = default;
//----------------------------------------------------------------------------//
void vtkParametricCatalanMinimal::Evaluate(double uvw[3], double Pt[3],
......
......@@ -42,9 +42,7 @@ vtkParametricConicSpiral::vtkParametricConicSpiral()
}
//----------------------------------------------------------------------------
vtkParametricConicSpiral::~vtkParametricConicSpiral()
{
}
vtkParametricConicSpiral::~vtkParametricConicSpiral() = default;
//----------------------------------------------------------------------------
void vtkParametricConicSpiral::Evaluate(double uvw[3], double Pt[3],
......
......@@ -36,9 +36,7 @@ vtkParametricCrossCap::vtkParametricCrossCap()
}
//----------------------------------------------------------------------------
vtkParametricCrossCap::~vtkParametricCrossCap()
{
}
vtkParametricCrossCap::~vtkParametricCrossCap() = default;
//----------------------------------------------------------------------------
void vtkParametricCrossCap::Evaluate(double uvw[3], double Pt[3],
......
......@@ -39,9 +39,7 @@ vtkParametricDini::vtkParametricDini()
}
//----------------------------------------------------------------------------
vtkParametricDini::~vtkParametricDini()
{
}
vtkParametricDini::~vtkParametricDini() = default;
//----------------------------------------------------------------------------
void vtkParametricDini::Evaluate(double uvw[3], double Pt[3],
......
......@@ -40,9 +40,7 @@ vtkParametricEllipsoid::vtkParametricEllipsoid() :
}
//----------------------------------------------------------------------------
vtkParametricEllipsoid::~vtkParametricEllipsoid()
{
}
vtkParametricEllipsoid::~vtkParametricEllipsoid() = default;
//----------------------------------------------------------------------------
void vtkParametricEllipsoid::Evaluate(double uvw[3], double Pt[3],
......
......@@ -37,9 +37,7 @@ vtkParametricEnneper::vtkParametricEnneper()
}
//----------------------------------------------------------------------------
vtkParametricEnneper::~vtkParametricEnneper()
{
}
vtkParametricEnneper::~vtkParametricEnneper() = default;
//----------------------------------------------------------------------------
void vtkParametricEnneper::Evaluate(double uvw[3], double Pt[3],
......
......@@ -37,9 +37,7 @@ vtkParametricFigure8Klein::vtkParametricFigure8Klein()
}
//----------------------------------------------------------------------------
vtkParametricFigure8Klein::~vtkParametricFigure8Klein()
{
}
vtkParametricFigure8Klein::~vtkParametricFigure8Klein() = default;
//----------------------------------------------------------------------------
void vtkParametricFigure8Klein::Evaluate(double uvw[3], double Pt[3],
......
......@@ -36,9 +36,7 @@ vtkParametricFunction::vtkParametricFunction() :
//----------------------------------------------------------------------------
vtkParametricFunction::~vtkParametricFunction()
{
}
vtkParametricFunction::~vtkParametricFunction() = default;
//----------------------------------------------------------------------------
......
......@@ -35,9 +35,7 @@ vtkParametricHenneberg::vtkParametricHenneberg()
}
//----------------------------------------------------------------------------//
vtkParametricHenneberg::~vtkParametricHenneberg()
{
}
vtkParametricHenneberg::~vtkParametricHenneberg() = default;
//----------------------------------------------------------------------------//
void vtkParametricHenneberg::Evaluate(double uvw[3], double Pt[3],
......
......@@ -36,9 +36,7 @@ vtkParametricKlein::vtkParametricKlein()
}
//----------------------------------------------------------------------------
vtkParametricKlein::~vtkParametricKlein()
{
}
vtkParametricKlein::~vtkParametricKlein() = default;