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

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: ...@@ -41,9 +41,7 @@ public:
return new vtkTFCallback; return new vtkTFCallback;
} }
vtkTFCallback() vtkTFCallback() = default;
{
}
void Execute( vtkObject *caller, unsigned long event, void Execute( vtkObject *caller, unsigned long event,
void *vtkNotUsed(callData) ) override void *vtkNotUsed(callData) ) override
......
...@@ -38,9 +38,7 @@ vtkAxisExtended::vtkAxisExtended() ...@@ -38,9 +38,7 @@ vtkAxisExtended::vtkAxisExtended()
this->IsAxisVertical = false; 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 // 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, double vtkAxisExtended::Simplicity(int qIndex, int qLength, int j, double lmin,
......
...@@ -47,9 +47,7 @@ vtkCategoryLegend::vtkCategoryLegend() ...@@ -47,9 +47,7 @@ vtkCategoryLegend::vtkCategoryLegend()
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCategoryLegend::~vtkCategoryLegend() vtkCategoryLegend::~vtkCategoryLegend() = default;
{
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
bool vtkCategoryLegend::Paint(vtkContext2D* painter) bool vtkCategoryLegend::Paint(vtkContext2D* painter)
......
...@@ -55,9 +55,7 @@ public: ...@@ -55,9 +55,7 @@ public:
this->YAxis->SetPoint1(0, 0); this->YAxis->SetPoint1(0, 0);
this->YAxis->SetTitle("Y"); this->YAxis->SetTitle("Y");
} }
~Private() ~Private() = default;
{
}
vtkSmartPointer<vtkPlotBox> Plot; vtkSmartPointer<vtkPlotBox> Plot;
std::vector<float> XPosition; std::vector<float> XPosition;
vtkNew<vtkTransform2D> Transform; vtkNew<vtkTransform2D> Transform;
......
...@@ -48,9 +48,7 @@ vtkChartHistogram2D::vtkChartHistogram2D() ...@@ -48,9 +48,7 @@ vtkChartHistogram2D::vtkChartHistogram2D()
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkChartHistogram2D::~vtkChartHistogram2D() vtkChartHistogram2D::~vtkChartHistogram2D() = default;
{
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void vtkChartHistogram2D::Update() void vtkChartHistogram2D::Update()
......
...@@ -41,9 +41,7 @@ public: ...@@ -41,9 +41,7 @@ public:
Private() : Point(0, 0) Private() : Point(0, 0)
{ {
} }
~Private() ~Private() = default;
{
}
vtkVector2f Point; vtkVector2f Point;
vtkWeakPointer<vtkChart> Chart; vtkWeakPointer<vtkChart> Chart;
......
...@@ -29,7 +29,7 @@ class vtkChartMatrix::PIMPL ...@@ -29,7 +29,7 @@ class vtkChartMatrix::PIMPL
{ {
public: public:
PIMPL() : Geometry(0, 0) {} PIMPL() : Geometry(0, 0) {}
~PIMPL() {} ~PIMPL() = default;
// Container for the vtkChart objects that make up the matrix. // Container for the vtkChart objects that make up the matrix.
std::vector< vtkSmartPointer<vtkChart> > Charts; std::vector< vtkSmartPointer<vtkChart> > Charts;
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
class vtkChartPiePrivate class vtkChartPiePrivate
{ {
public: public:
vtkChartPiePrivate() vtkChartPiePrivate() = default;
{
}
vtkSmartPointer<vtkPlotPie> Plot; vtkSmartPointer<vtkPlotPie> Plot;
}; };
......
...@@ -73,9 +73,7 @@ vtkChartXYZ::vtkChartXYZ() : Geometry(0, 0, 10, 10), IsX(false), Angle(0) ...@@ -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) void vtkChartXYZ::SetAngle(double angle)
......
...@@ -56,9 +56,7 @@ vtkColorLegend::vtkColorLegend() ...@@ -56,9 +56,7 @@ vtkColorLegend::vtkColorLegend()
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkColorLegend::~vtkColorLegend() vtkColorLegend::~vtkColorLegend() = default;
{
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void vtkColorLegend::PrintSelf(ostream &os, vtkIndent indent) void vtkColorLegend::PrintSelf(ostream &os, vtkIndent indent)
......
...@@ -56,9 +56,7 @@ vtkContextArea::vtkContextArea() ...@@ -56,9 +56,7 @@ vtkContextArea::vtkContextArea()
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
vtkContextArea::~vtkContextArea() vtkContextArea::~vtkContextArea() = default;
{
}
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void vtkContextArea::InitializeDrawArea() void vtkContextArea::InitializeDrawArea()
......
...@@ -52,9 +52,7 @@ vtkPlot3D::vtkPlot3D() ...@@ -52,9 +52,7 @@ vtkPlot3D::vtkPlot3D()
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkPlot3D::~vtkPlot3D() vtkPlot3D::~vtkPlot3D() = default;
{
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void vtkPlot3D::PrintSelf(ostream &os, vtkIndent indent) void vtkPlot3D::PrintSelf(ostream &os, vtkIndent indent)
......
...@@ -46,9 +46,7 @@ class vtkPlotBox::Private : ...@@ -46,9 +46,7 @@ class vtkPlotBox::Private :
public std::vector< std::vector<double> > public std::vector< std::vector<double> >
{ {
public: public:
Private() Private() = default;
{
}
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -35,9 +35,7 @@ vtkPlotHistogram2D::vtkPlotHistogram2D() ...@@ -35,9 +35,7 @@ vtkPlotHistogram2D::vtkPlotHistogram2D()
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkPlotHistogram2D::~vtkPlotHistogram2D() vtkPlotHistogram2D::~vtkPlotHistogram2D() = default;
{
}
void vtkPlotHistogram2D::Update() void vtkPlotHistogram2D::Update()
{ {
......
...@@ -34,9 +34,7 @@ vtkPlotLine::vtkPlotLine() ...@@ -34,9 +34,7 @@ vtkPlotLine::vtkPlotLine()
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkPlotLine::~vtkPlotLine() vtkPlotLine::~vtkPlotLine() = default;
{
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
bool vtkPlotLine::Paint(vtkContext2D *painter) bool vtkPlotLine::Paint(vtkContext2D *painter)
......
...@@ -25,14 +25,10 @@ ...@@ -25,14 +25,10 @@
vtkStandardNewMacro(vtkPlotLine3D); vtkStandardNewMacro(vtkPlotLine3D);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkPlotLine3D::vtkPlotLine3D() vtkPlotLine3D::vtkPlotLine3D() = default;
{
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkPlotLine3D::~vtkPlotLine3D() vtkPlotLine3D::~vtkPlotLine3D() = default;
{
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
bool vtkPlotLine3D::Paint(vtkContext2D *painter) bool vtkPlotLine3D::Paint(vtkContext2D *painter)
......
...@@ -35,9 +35,7 @@ vtkPlotPoints3D::vtkPlotPoints3D() ...@@ -35,9 +35,7 @@ vtkPlotPoints3D::vtkPlotPoints3D()
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkPlotPoints3D::~vtkPlotPoints3D() vtkPlotPoints3D::~vtkPlotPoints3D() = default;
{
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void vtkPlotPoints3D::PrintSelf(ostream &os, vtkIndent indent) void vtkPlotPoints3D::PrintSelf(ostream &os, vtkIndent indent)
......
...@@ -42,9 +42,7 @@ vtkPlotSurface::vtkPlotSurface() ...@@ -42,9 +42,7 @@ vtkPlotSurface::vtkPlotSurface()
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkPlotSurface::~vtkPlotSurface() vtkPlotSurface::~vtkPlotSurface() = default;
{
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void vtkPlotSurface::PrintSelf(ostream &os, vtkIndent indent) void vtkPlotSurface::PrintSelf(ostream &os, vtkIndent indent)
......
...@@ -117,7 +117,7 @@ public: ...@@ -117,7 +117,7 @@ public:
this->LabelFont->SetColor(0.0, 0.0, 0.0); this->LabelFont->SetColor(0.0, 0.0, 0.0);
this->LabelFont->SetOpacity(1.0); this->LabelFont->SetOpacity(1.0);
} }
~pimplChartSetting() {} ~pimplChartSetting() = default;
int MarkerStyle; int MarkerStyle;
float MarkerSize; float MarkerSize;
......
...@@ -34,9 +34,7 @@ public: ...@@ -34,9 +34,7 @@ public:
this->Init(); this->Init();
} }
virtual ~vtkNamedColorsDataStore() virtual ~vtkNamedColorsDataStore() = default;
{
}
public: public:
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
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