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;
//----------------------------------------------------------------------------
void vtkParametricKlein::Evaluate(double uvw[3], double Pt[3],
......
......@@ -38,9 +38,7 @@ vtkParametricKuen::vtkParametricKuen()
}
//----------------------------------------------------------------------------//
vtkParametricKuen::~vtkParametricKuen()
{
}
vtkParametricKuen::~vtkParametricKuen() = default;
//----------------------------------------------------------------------------//
void vtkParametricKuen::Evaluate(double uvw[3], double Pt[3],
......
......@@ -37,9 +37,7 @@ vtkParametricMobius::vtkParametricMobius()
}
//----------------------------------------------------------------------------
vtkParametricMobius::~vtkParametricMobius()
{
}
vtkParametricMobius::~vtkParametricMobius() = default;
//----------------------------------------------------------------------------
void vtkParametricMobius::Evaluate(double uvw[3], double Pt[3],
......
......@@ -36,9 +36,7 @@ vtkParametricPluckerConoid::vtkParametricPluckerConoid() :
}
//----------------------------------------------------------------------------//
vtkParametricPluckerConoid::~vtkParametricPluckerConoid()
{
}
vtkParametricPluckerConoid::~vtkParametricPluckerConoid() = default;
//----------------------------------------------------------------------------//
void vtkParametricPluckerConoid::Evaluate(double uvw[3], double Pt[3],
......
......@@ -35,9 +35,7 @@ vtkParametricPseudosphere::vtkParametricPseudosphere()
}
//----------------------------------------------------------------------------//
vtkParametricPseudosphere::~vtkParametricPseudosphere()
{
}
vtkParametricPseudosphere::~vtkParametricPseudosphere() = default;
//----------------------------------------------------------------------------//
void vtkParametricPseudosphere::Evaluate(double uvw[3], double Pt[3],
......
......@@ -36,9 +36,7 @@ vtkParametricRoman::vtkParametricRoman():
}
//----------------------------------------------------------------------------
vtkParametricRoman::~vtkParametricRoman()
{
}
vtkParametricRoman::~vtkParametricRoman() = default;
//----------------------------------------------------------------------------
void vtkParametricRoman::Evaluate(double uvw[3], double Pt[3],
......
......@@ -67,9 +67,7 @@ vtkParametricSuperEllipsoid::vtkParametricSuperEllipsoid() :
}
//----------------------------------------------------------------------------
vtkParametricSuperEllipsoid::~vtkParametricSuperEllipsoid()
{
}
vtkParametricSuperEllipsoid::~vtkParametricSuperEllipsoid() = default;
//----------------------------------------------------------------------------
void vtkParametricSuperEllipsoid::Evaluate(double uvw[3], double Pt[3],
......
......@@ -65,9 +65,7 @@ vtkParametricSuperToroid::vtkParametricSuperToroid() :
}
//----------------------------------------------------------------------------
vtkParametricSuperToroid::~vtkParametricSuperToroid()
{
}
vtkParametricSuperToroid::~vtkParametricSuperToroid() = default;
//----------------------------------------------------------------------------
......
......@@ -36,9 +36,7 @@ vtkParametricTorus::vtkParametricTorus() :
}
//----------------------------------------------------------------------------
vtkParametricTorus::~vtkParametricTorus()
{
}
vtkParametricTorus::~vtkParametricTorus() = default;
//----------------------------------------------------------------------------
void vtkParametricTorus::Evaluate(double uvw[3], double Pt[3],
......
......@@ -46,7 +46,7 @@ bool fuzzyCompare3D(A a[3], A b[3])
// Helpful class for storing and using color triples.
class Triple {
public:
Triple() {};
Triple() = default;;
Triple(double a, double b, double c) {
data[0] = a; data[1] = b; data[2] = c;
}
......
......@@ -28,13 +28,11 @@ class vtkTestPoints : public vtkPoints
{
public:
// Methods from vtkObject
~vtkTestPoints() override
{
}
~vtkTestPoints() override = default;
vtkTypeMacro(vtkTestPoints,vtkPoints);
static vtkTestPoints* New() { VTK_STANDARD_NEW_BODY(vtkTestPoints) }
vtkTestPoints() { }
vtkTestPoints() = default;
private:
vtkTestPoints(const vtkTestPoints&) = delete;
vtkTestPoints& operator=(const vtkTestPoints&) = delete;
......@@ -44,14 +42,12 @@ private:
class vtkTestPoints2 : public vtkPoints
{
public:
~vtkTestPoints2() override
{
}
~vtkTestPoints2() override = default;
// Methods from vtkObject
vtkTypeMacro(vtkTestPoints2,vtkPoints);
static vtkTestPoints2* New() { VTK_STANDARD_NEW_BODY(vtkTestPoints2) }
vtkTestPoints2() { }
vtkTestPoints2() = default;
private:
vtkTestPoints2(const vtkTestPoints2&) = delete;
vtkTestPoints2& operator=(const vtkTestPoints2&) = delete;
......
......@@ -896,7 +896,7 @@ int TestMultiplyScalar2D()
class valueDouble3D
{
public:
valueDouble3D() {}
valueDouble3D() = default;
valueDouble3D(double aa[3], double bb[3])
{
for (int i = 0; i < 3; ++i)
......@@ -912,7 +912,7 @@ public:
class valueFloat3D
{
public:
valueFloat3D() {}
valueFloat3D() = default;
valueFloat3D(float aa[3], float bb[3])
{
for (int i = 0; i < 3; ++i)
......
......@@ -20,13 +20,9 @@
vtkStandardNewMacro(vtkTestNewVar);
vtkTestNewVar::vtkTestNewVar()
{
}
vtkTestNewVar::vtkTestNewVar() = default;
vtkTestNewVar::~vtkTestNewVar()
{
}
vtkTestNewVar::~vtkTestNewVar() = default;
vtkIdType vtkTestNewVar::GetPointsRefCount()
{
......
......@@ -31,9 +31,7 @@ vtkAnimationCue::vtkAnimationCue()
}