Skip to content
Snippets Groups Projects
Commit dbb4f237 authored by Matthew D Jones's avatar Matthew D Jones
Browse files

Re #11422 Added virtual destructors to PowerScaleEngine

parent 00d11d7a
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
***************************************************************************/ ***************************************************************************/
#include "PowerScaleEngine.h" #include "PowerScaleEngine.h"
#include "ScaleEngine.h"
/*! /*!
Return a dummy transformation Return a dummy transformation
...@@ -38,6 +37,8 @@ QwtScaleTransformation *PowerScaleEngine::transformation() const ...@@ -38,6 +37,8 @@ QwtScaleTransformation *PowerScaleEngine::transformation() const
return new QwtScaleTransformation(QwtScaleTransformation::Other); return new QwtScaleTransformation(QwtScaleTransformation::Other);
} }
PowerScaleEngine::~PowerScaleEngine() {}
/*! /*!
Align and divide an interval Align and divide an interval
...@@ -245,6 +246,8 @@ QwtScaleTransformation *PowerScaleTransformation::copy() const ...@@ -245,6 +246,8 @@ QwtScaleTransformation *PowerScaleTransformation::copy() const
return new PowerScaleTransformation(d_engine); return new PowerScaleTransformation(d_engine);
} }
PowerScaleTransformation::~PowerScaleTransformation() {}
/* /*
* Transform a value between 2 linear intervals * Transform a value between 2 linear intervals
* *
......
...@@ -41,6 +41,7 @@ public: ...@@ -41,6 +41,7 @@ public:
virtual double xForm(double x, double, double, double p1, double p2) const; 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; virtual double invXForm(double x, double s1, double s2, double p1, double p2) const;
QwtScaleTransformation* copy() const; QwtScaleTransformation* copy() const;
virtual ~PowerScaleTransformation();
private: private:
double nth_power; double nth_power;
}; };
...@@ -61,6 +62,8 @@ public: ...@@ -61,6 +62,8 @@ public:
virtual QwtScaleTransformation *transformation() const; virtual QwtScaleTransformation *transformation() const;
virtual ~PowerScaleEngine();
protected: protected:
QwtDoubleInterval align(const QwtDoubleInterval&, QwtDoubleInterval align(const QwtDoubleInterval&,
double stepSize) const; double stepSize) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment