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);