Commit d0ccbacd authored by Mikaël Salson's avatar Mikaël Salson

Algo: Add virtual destructors when needed.

That solves ``deleting object of polymorphic class type * which has
non-virtual destructor'' GCC warnings.
parent 4575dc26
......@@ -43,6 +43,8 @@ template<class T>
class AffectAnalyser {
public:
virtual ~AffectAnalyser() {}
/* Queries */
/**
......
......@@ -60,6 +60,7 @@ void KmerAffectReadScore::setUnknownScore(float score) {
////////////////////////////////////////////////////////////////////////////////
ReadLengthScore::ReadLengthScore(){}
ReadLengthScore::~ReadLengthScore(){}
float ReadLengthScore::getScore(const string &sequence) const {
return sequence.size();
......
......@@ -11,6 +11,8 @@
*/
class VirtualReadScore {
public:
virtual ~VirtualReadScore() {}
/**
* @param sequence: some text
* @return the score associated to the sequence.
......@@ -62,6 +64,7 @@ public:
class ReadLengthScore: public VirtualReadScore {
public:
ReadLengthScore();
~ReadLengthScore();
/**
* @return the sequence length
......
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