Commit fa6a43c8 authored by Hahn, Steven's avatar Hahn, Steven
Browse files

Apply change from clang-tidy: modernize-use-default.

parent de6e4660
......@@ -60,10 +60,6 @@ Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
class DLLExport Fit1D : public API::Algorithm {
public:
/// Default constructor
Fit1D() : API::Algorithm(){};
/// Destructor
~Fit1D() override{};
/// Algorithm's name for identification overriding a virtual method
const std::string name() const override { return "Fit1D"; }
/// Algorithm's version for identification overriding a virtual method
......
......@@ -67,8 +67,6 @@ protected:
class DLLExport PawleyFit : public API::Algorithm {
public:
PawleyFit();
~PawleyFit() override {}
const std::string name() const override { return "PawleyFit"; }
int version() const override { return 1; }
const std::string summary() const override;
......
......@@ -79,10 +79,6 @@ class DLLExport PlotPeakByLogValue : public API::Algorithm {
};
public:
/// Default constructor
PlotPeakByLogValue() : API::Algorithm(){};
/// Destructor
~PlotPeakByLogValue() override{};
/// Algorithm's name for identification overriding a virtual method
const std::string name() const override { return "PlotPeakByLogValue"; }
/// Summary of algorithms purpose
......
......@@ -39,10 +39,6 @@ namespace Algorithms {
*/
class DLLExport SplineBackground : public API::Algorithm {
public:
/// Default constructor
SplineBackground() : API::Algorithm(){};
/// Destructor
~SplineBackground() override{};
/// Algorithm's name for identification overriding a virtual method
const std::string name() const override { return "SplineBackground"; }
/// Algorithm's version for identification overriding a virtual method
......
......@@ -77,7 +77,7 @@ FitPowderDiffPeaks::FitPowderDiffPeaks()
//----------------------------------------------------------------------------------------------
/** Destructor
*/
FitPowderDiffPeaks::~FitPowderDiffPeaks() {}
FitPowderDiffPeaks::~FitPowderDiffPeaks() = default;
//----------------------------------------------------------------------------------------------
/** Parameter declaration
......
......@@ -73,7 +73,7 @@ LeBailFit::LeBailFit()
//----------------------------------------------------------------------------------------------
/** Destructor
*/
LeBailFit::~LeBailFit() {}
LeBailFit::~LeBailFit() = default;
//----------------------------------------------------------------------------------------------
/** Declare the input properties for this algorithm
......
......@@ -56,7 +56,7 @@ RefinePowderInstrumentParameters::RefinePowderInstrumentParameters()
//----------------------------------------------------------------------------------------------
/** Destructor
*/
RefinePowderInstrumentParameters::~RefinePowderInstrumentParameters() {}
RefinePowderInstrumentParameters::~RefinePowderInstrumentParameters() = default;
//----------------------------------------------------------------------------------------------
/** Parameter declaration
......
......@@ -31,7 +31,8 @@ RefinePowderInstrumentParameters3::RefinePowderInstrumentParameters3()
//----------------------------------------------------------------------------------------------
/** Destructor
*/
RefinePowderInstrumentParameters3::~RefinePowderInstrumentParameters3() {}
RefinePowderInstrumentParameters3::~RefinePowderInstrumentParameters3() =
default;
//----------------------------------------------------------------------------------------------
/** Declare properties
......
......@@ -26,7 +26,7 @@ SplineInterpolation::SplineInterpolation()
//----------------------------------------------------------------------------------------------
/** Destructor
*/
SplineInterpolation::~SplineInterpolation() {}
SplineInterpolation::~SplineInterpolation() = default;
//----------------------------------------------------------------------------------------------
/// Algorithm's name for identification. @see Algorithm::name
......
......@@ -30,7 +30,7 @@ SplineSmoothing::SplineSmoothing()
//----------------------------------------------------------------------------------------------
/** Destructor
*/
SplineSmoothing::~SplineSmoothing() {}
SplineSmoothing::~SplineSmoothing() = default;
//----------------------------------------------------------------------------------------------
/// Algorithm's name for identification. @see Algorithm::name
......
......@@ -38,9 +38,6 @@ namespace Mantid {
namespace MDAlgorithms {
class DLLExport CompactMD : public API::Algorithm {
public:
CompactMD(){};
~CompactMD() override{};
void init() override;
void exec() override;
/// Algorithm's name for identification
......
......@@ -50,10 +50,6 @@ namespace MDAlgorithms {
*/
class DLLExport ConvertMDHistoToMatrixWorkspace : public API::Algorithm {
public:
/// (Empty) Constructor
ConvertMDHistoToMatrixWorkspace() : API::Algorithm() {}
/// Virtual destructor
~ConvertMDHistoToMatrixWorkspace() override {}
/// Algorithm's name
const std::string name() const override {
return "ConvertMDHistoToMatrixWorkspace";
......
......@@ -19,11 +19,6 @@ namespace MDAlgorithms {
class DLLExport ConvertToDiffractionMDWorkspace2
: public MDAlgorithms::BoxControllerSettingsAlgorithm {
public:
/** Constructor */
ConvertToDiffractionMDWorkspace2() {}
/** Destructor */
~ConvertToDiffractionMDWorkspace2() override {}
/// Algorithm's name for identification
const std::string name() const override {
return "ConvertToDiffractionMDWorkspace";
......
......@@ -47,9 +47,6 @@ namespace MDAlgorithms {
/// Convert to MD Events class itself:
class DLLExport ConvertToMDParent : public BoxControllerSettingsAlgorithm {
public:
ConvertToMDParent() {}
~ConvertToMDParent() override {}
/// Algorithm's name for identification
const std::string name() const override = 0;
/// Algorithm's version for identification
......
......@@ -204,7 +204,7 @@ AccumulateMD::AccumulateMD() {}
/*
* Destructor
*/
AccumulateMD::~AccumulateMD() {}
AccumulateMD::~AccumulateMD() = default;
/// Algorithms name for identification. @see Algorithm::name
const std::string AccumulateMD::name() const { return "AccumulateMD"; }
......
......@@ -17,7 +17,7 @@ AndMD::AndMD() {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
AndMD::~AndMD() {}
AndMD::~AndMD() = default;
//----------------------------------------------------------------------------------------------
/// Algorithm's name for identification. @see Algorithm::name
......
......@@ -42,7 +42,7 @@ BinMD::BinMD()
//----------------------------------------------------------------------------------------------
/** Destructor
*/
BinMD::~BinMD() {}
BinMD::~BinMD() = default;
//----------------------------------------------------------------------------------------------
......
......@@ -26,7 +26,7 @@ BinaryOperationMD::BinaryOperationMD() {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
BinaryOperationMD::~BinaryOperationMD() {}
BinaryOperationMD::~BinaryOperationMD() = default;
//----------------------------------------------------------------------------------------------
/// Algorithm's name for identification. @see Algorithm::name
......
......@@ -16,7 +16,7 @@ BooleanBinaryOperationMD::BooleanBinaryOperationMD() {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
BooleanBinaryOperationMD::~BooleanBinaryOperationMD() {}
BooleanBinaryOperationMD::~BooleanBinaryOperationMD() = default;
//----------------------------------------------------------------------------------------------
/// Algorithm's name for identification. @see Algorithm::name
......
......@@ -18,7 +18,7 @@ BoxControllerSettingsAlgorithm::BoxControllerSettingsAlgorithm() {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
BoxControllerSettingsAlgorithm::~BoxControllerSettingsAlgorithm() {}
BoxControllerSettingsAlgorithm::~BoxControllerSettingsAlgorithm() = default;
//----------------------------------------------------------------------------------------------
/** Add Box-controller-specific properties to this algorithm
......
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