Commit 4fe2cc34 authored by Hahn, Steven's avatar Hahn, Steven
Browse files

Remove simple constructors/destructors in favor of compiler-generated ones.

parent fa6a43c8
...@@ -61,7 +61,6 @@ namespace Algorithms { ...@@ -61,7 +61,6 @@ namespace Algorithms {
class DLLExport FitPowderDiffPeaks : public API::Algorithm { class DLLExport FitPowderDiffPeaks : public API::Algorithm {
public: public:
FitPowderDiffPeaks(); FitPowderDiffPeaks();
~FitPowderDiffPeaks() override;
/// Algorithm's name for identification overriding a virtual method /// Algorithm's name for identification overriding a virtual method
const std::string name() const override { return "FitPowderDiffPeaks"; } const std::string name() const override { return "FitPowderDiffPeaks"; }
......
...@@ -75,7 +75,6 @@ public: ...@@ -75,7 +75,6 @@ public:
enum FunctionMode { CALCULATION, FIT, BACKGROUNDPROCESS, MONTECARLO }; enum FunctionMode { CALCULATION, FIT, BACKGROUNDPROCESS, MONTECARLO };
LeBailFit(); LeBailFit();
~LeBailFit() override;
/// Algorithm's name for identification overriding a virtual method /// Algorithm's name for identification overriding a virtual method
const std::string name() const override { return "LeBailFit"; } const std::string name() const override { return "LeBailFit"; }
......
...@@ -54,7 +54,6 @@ namespace Algorithms { ...@@ -54,7 +54,6 @@ namespace Algorithms {
class DLLExport RefinePowderInstrumentParameters : public API::Algorithm { class DLLExport RefinePowderInstrumentParameters : public API::Algorithm {
public: public:
RefinePowderInstrumentParameters(); RefinePowderInstrumentParameters();
~RefinePowderInstrumentParameters() override;
/// Algorithm's name for identification overriding a virtual method /// Algorithm's name for identification overriding a virtual method
const std::string name() const override { const std::string name() const override {
......
...@@ -42,7 +42,6 @@ namespace Algorithms { ...@@ -42,7 +42,6 @@ namespace Algorithms {
class DLLExport RefinePowderInstrumentParameters3 : public API::Algorithm { class DLLExport RefinePowderInstrumentParameters3 : public API::Algorithm {
public: public:
RefinePowderInstrumentParameters3(); RefinePowderInstrumentParameters3();
~RefinePowderInstrumentParameters3() override;
/// Algorithm's name for identification overriding a virtual method /// Algorithm's name for identification overriding a virtual method
const std::string name() const override { const std::string name() const override {
......
...@@ -46,7 +46,6 @@ namespace Algorithms { ...@@ -46,7 +46,6 @@ namespace Algorithms {
class DLLExport SplineInterpolation : public API::Algorithm { class DLLExport SplineInterpolation : public API::Algorithm {
public: public:
SplineInterpolation(); SplineInterpolation();
~SplineInterpolation() override;
const std::string name() const override; const std::string name() const override;
int version() const override; int version() const override;
......
...@@ -41,7 +41,6 @@ namespace Algorithms { ...@@ -41,7 +41,6 @@ namespace Algorithms {
class DLLExport SplineSmoothing : public API::Algorithm { class DLLExport SplineSmoothing : public API::Algorithm {
public: public:
SplineSmoothing(); SplineSmoothing();
~SplineSmoothing() override;
const std::string name() const override; const std::string name() const override;
int version() const override; int version() const override;
......
...@@ -74,11 +74,6 @@ FitPowderDiffPeaks::FitPowderDiffPeaks() ...@@ -74,11 +74,6 @@ FitPowderDiffPeaks::FitPowderDiffPeaks()
m_rightmostPeakRightBound(0.), m_minPeakHeight(0.), m_unitCell(), m_rightmostPeakRightBound(0.), m_minPeakHeight(0.), m_unitCell(),
m_fitPeakBackgroundComposite(false) {} m_fitPeakBackgroundComposite(false) {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
FitPowderDiffPeaks::~FitPowderDiffPeaks() = default;
//---------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------
/** Parameter declaration /** Parameter declaration
*/ */
......
...@@ -70,11 +70,6 @@ LeBailFit::LeBailFit() ...@@ -70,11 +70,6 @@ LeBailFit::LeBailFit()
m_numberBkgdParameters(0), m_bkgdParameterBuffer(), m_bestBkgdParams(), m_numberBkgdParameters(0), m_bkgdParameterBuffer(), m_bestBkgdParams(),
m_roundBkgd(0), m_bkgdParameterStepVec(), m_peakCentreTol(0.) {} m_roundBkgd(0), m_bkgdParameterStepVec(), m_peakCentreTol(0.) {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
LeBailFit::~LeBailFit() = default;
//---------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------
/** Declare the input properties for this algorithm /** Declare the input properties for this algorithm
*/ */
......
...@@ -53,11 +53,6 @@ RefinePowderInstrumentParameters::RefinePowderInstrumentParameters() ...@@ -53,11 +53,6 @@ RefinePowderInstrumentParameters::RefinePowderInstrumentParameters()
: m_BestGSLChi2(0.0), m_MinSigma(0.0), m_MinNumFittedPeaks(0), : m_BestGSLChi2(0.0), m_MinSigma(0.0), m_MinNumFittedPeaks(0),
m_MaxNumberStoredParameters(0) {} m_MaxNumberStoredParameters(0) {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
RefinePowderInstrumentParameters::~RefinePowderInstrumentParameters() = default;
//---------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------
/** Parameter declaration /** Parameter declaration
*/ */
......
...@@ -28,12 +28,6 @@ RefinePowderInstrumentParameters3::RefinePowderInstrumentParameters3() ...@@ -28,12 +28,6 @@ RefinePowderInstrumentParameters3::RefinePowderInstrumentParameters3()
m_profileParameters(), m_positionFunc(), m_dampingFactor(0.), m_profileParameters(), m_positionFunc(), m_dampingFactor(0.),
m_bestChiSq(0.), m_bestChiSqStep(-1), m_bestChiSqGroup(-1) {} m_bestChiSq(0.), m_bestChiSqStep(-1), m_bestChiSqGroup(-1) {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
RefinePowderInstrumentParameters3::~RefinePowderInstrumentParameters3() =
default;
//---------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------
/** Declare properties /** Declare properties
*/ */
......
...@@ -23,11 +23,6 @@ using Functions::CubicSpline; ...@@ -23,11 +23,6 @@ using Functions::CubicSpline;
SplineInterpolation::SplineInterpolation() SplineInterpolation::SplineInterpolation()
: m_cspline(boost::make_shared<CubicSpline>()) {} : m_cspline(boost::make_shared<CubicSpline>()) {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
SplineInterpolation::~SplineInterpolation() = default;
//---------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------
/// Algorithm's name for identification. @see Algorithm::name /// Algorithm's name for identification. @see Algorithm::name
const std::string SplineInterpolation::name() const { const std::string SplineInterpolation::name() const {
......
...@@ -27,11 +27,6 @@ SplineSmoothing::SplineSmoothing() ...@@ -27,11 +27,6 @@ SplineSmoothing::SplineSmoothing()
m_inputWorkspace(), m_inputWorkspacePointData(), m_inputWorkspace(), m_inputWorkspacePointData(),
m_derivativeWorkspaceGroup(new WorkspaceGroup) {} m_derivativeWorkspaceGroup(new WorkspaceGroup) {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
SplineSmoothing::~SplineSmoothing() = default;
//---------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------
/// Algorithm's name for identification. @see Algorithm::name /// Algorithm's name for identification. @see Algorithm::name
const std::string SplineSmoothing::name() const { return "SplineSmoothing"; } const std::string SplineSmoothing::name() const { return "SplineSmoothing"; }
......
...@@ -86,9 +86,6 @@ padParameterVector(std::vector<double> &param_vector, ...@@ -86,9 +86,6 @@ padParameterVector(std::vector<double> &param_vector,
*/ */
class DLLExport AccumulateMD : public API::DataProcessorAlgorithm { class DLLExport AccumulateMD : public API::DataProcessorAlgorithm {
public: public:
AccumulateMD();
~AccumulateMD() override;
const std::string name() const override; const std::string name() const override;
int version() const override; int version() const override;
const std::string category() const override; const std::string category() const override;
......
...@@ -36,8 +36,6 @@ namespace MDAlgorithms { ...@@ -36,8 +36,6 @@ namespace MDAlgorithms {
*/ */
class DLLExport AndMD : public BooleanBinaryOperationMD { class DLLExport AndMD : public BooleanBinaryOperationMD {
public: public:
AndMD();
~AndMD() override;
const std::string name() const override; const std::string name() const override;
int version() const override; int version() const override;
......
...@@ -33,7 +33,6 @@ namespace MDAlgorithms { ...@@ -33,7 +33,6 @@ namespace MDAlgorithms {
class DLLExport BinMD : public SlicingAlgorithm { class DLLExport BinMD : public SlicingAlgorithm {
public: public:
BinMD(); BinMD();
~BinMD() override;
/// Algorithm's name for identification /// Algorithm's name for identification
const std::string name() const override { return "BinMD"; } const std::string name() const override { return "BinMD"; }
......
...@@ -45,9 +45,6 @@ namespace MDAlgorithms { ...@@ -45,9 +45,6 @@ namespace MDAlgorithms {
*/ */
class DLLExport BinaryOperationMD : public API::Algorithm { class DLLExport BinaryOperationMD : public API::Algorithm {
public: public:
BinaryOperationMD();
~BinaryOperationMD() override;
const std::string name() const override; const std::string name() const override;
int version() const override; int version() const override;
const std::string category() const override; const std::string category() const override;
......
...@@ -36,9 +36,6 @@ namespace MDAlgorithms { ...@@ -36,9 +36,6 @@ namespace MDAlgorithms {
*/ */
class DLLExport BooleanBinaryOperationMD : public BinaryOperationMD { class DLLExport BooleanBinaryOperationMD : public BinaryOperationMD {
public: public:
BooleanBinaryOperationMD();
~BooleanBinaryOperationMD() override;
const std::string name() const override; const std::string name() const override;
/// Summary of algorithms purpose /// Summary of algorithms purpose
const std::string summary() const override; const std::string summary() const override;
......
...@@ -40,8 +40,6 @@ namespace MDAlgorithms { ...@@ -40,8 +40,6 @@ namespace MDAlgorithms {
*/ */
class DLLExport BoxControllerSettingsAlgorithm : public API::Algorithm { class DLLExport BoxControllerSettingsAlgorithm : public API::Algorithm {
public: public:
BoxControllerSettingsAlgorithm();
~BoxControllerSettingsAlgorithm() override;
protected: protected:
/// Initialise the properties /// Initialise the properties
......
...@@ -35,8 +35,6 @@ namespace MDAlgorithms { ...@@ -35,8 +35,6 @@ namespace MDAlgorithms {
class DLLExport CalculateCoverageDGS : public API::Algorithm { class DLLExport CalculateCoverageDGS : public API::Algorithm {
public: public:
CalculateCoverageDGS(); CalculateCoverageDGS();
~CalculateCoverageDGS() override;
const std::string name() const override; const std::string name() const override;
int version() const override; int version() const override;
const std::string category() const override; const std::string category() const override;
......
...@@ -18,8 +18,6 @@ namespace MDAlgorithms { ...@@ -18,8 +18,6 @@ namespace MDAlgorithms {
*/ */
class DLLExport CentroidPeaksMD : public API::Algorithm { class DLLExport CentroidPeaksMD : public API::Algorithm {
public: public:
CentroidPeaksMD();
~CentroidPeaksMD() override;
/// Algorithm's name for identification /// Algorithm's name for identification
const std::string name() const override { return "CentroidPeaksMD"; }; const std::string name() const override { return "CentroidPeaksMD"; };
......
Supports Markdown
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