Code cleanup

This commit is contained in:
Bruno Herbelin
2021-12-20 00:30:59 +01:00
parent 733d08638d
commit fb7bdba388
3 changed files with 8 additions and 1 deletions

View File

@@ -150,14 +150,19 @@ Interpolator::Interpolator()
}
Interpolator::~Interpolator()
{
clear();
}
void Interpolator::clear()
{
for (auto i = interpolators_.begin(); i != interpolators_.end(); ) {
delete *i;
i = interpolators_.erase(i);
}
}
void Interpolator::add (Source *s, const SourceCore &target)
{
SourceInterpolator *i = new SourceInterpolator(s, target);

View File

@@ -30,6 +30,7 @@ public:
Interpolator();
~Interpolator();
void clear ();
void add (Source *s, const SourceCore &target );
void apply (float percent);

View File

@@ -1,6 +1,7 @@
#ifndef SELECTION_H
#define SELECTION_H
#include <string>
#include "SourceList.h"
class Selection