diff --git a/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.cpp b/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.cpp index 525d7be659370d2bf2c7f710df8535aa16ec325a..f601155ec900a0cfce4dba64863296170959c911 100644 --- a/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.cpp +++ b/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.cpp @@ -28,7 +28,6 @@ ***************************************************************************/ #include "PowerScaleEngine.h" -#include "ScaleEngine.h" /*! Return a dummy transformation @@ -38,6 +37,8 @@ QwtScaleTransformation *PowerScaleEngine::transformation() const return new QwtScaleTransformation(QwtScaleTransformation::Other); } +PowerScaleEngine::~PowerScaleEngine() {} + /*! Align and divide an interval @@ -245,6 +246,8 @@ QwtScaleTransformation *PowerScaleTransformation::copy() const return new PowerScaleTransformation(d_engine); } +PowerScaleTransformation::~PowerScaleTransformation() {} + /* * Transform a value between 2 linear intervals * diff --git a/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.h b/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.h index d0120c45134600b38fb447e9524c0c497f898ba5..c22ac24e7babe8a2b7993896d0681fecc9e84c4b 100644 --- a/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.h +++ b/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.h @@ -41,6 +41,7 @@ public: virtual double xForm(double x, double, double, double p1, double p2) const; virtual double invXForm(double x, double s1, double s2, double p1, double p2) const; QwtScaleTransformation* copy() const; + virtual ~PowerScaleTransformation(); private: double nth_power; }; @@ -61,6 +62,8 @@ public: virtual QwtScaleTransformation *transformation() const; + virtual ~PowerScaleEngine(); + protected: QwtDoubleInterval align(const QwtDoubleInterval&, double stepSize) const;