mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 11:49:59 +01:00
Code cleanup
This commit is contained in:
@@ -150,14 +150,19 @@ Interpolator::Interpolator()
|
|||||||
}
|
}
|
||||||
|
|
||||||
Interpolator::~Interpolator()
|
Interpolator::~Interpolator()
|
||||||
|
{
|
||||||
|
clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Interpolator::clear()
|
||||||
{
|
{
|
||||||
for (auto i = interpolators_.begin(); i != interpolators_.end(); ) {
|
for (auto i = interpolators_.begin(); i != interpolators_.end(); ) {
|
||||||
delete *i;
|
delete *i;
|
||||||
i = interpolators_.erase(i);
|
i = interpolators_.erase(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Interpolator::add (Source *s, const SourceCore &target)
|
void Interpolator::add (Source *s, const SourceCore &target)
|
||||||
{
|
{
|
||||||
SourceInterpolator *i = new SourceInterpolator(s, target);
|
SourceInterpolator *i = new SourceInterpolator(s, target);
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ public:
|
|||||||
Interpolator();
|
Interpolator();
|
||||||
~Interpolator();
|
~Interpolator();
|
||||||
|
|
||||||
|
void clear ();
|
||||||
void add (Source *s, const SourceCore &target );
|
void add (Source *s, const SourceCore &target );
|
||||||
|
|
||||||
void apply (float percent);
|
void apply (float percent);
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#ifndef SELECTION_H
|
#ifndef SELECTION_H
|
||||||
#define SELECTION_H
|
#define SELECTION_H
|
||||||
|
|
||||||
|
#include <string>
|
||||||
#include "SourceList.h"
|
#include "SourceList.h"
|
||||||
|
|
||||||
class Selection
|
class Selection
|
||||||
|
|||||||
Reference in New Issue
Block a user