[Interval] Coding style on compute

This commit is contained in:
Joachim LF
2020-05-01 17:35:09 +02:00
committed by EmilieNumworks
parent f250311856
commit 43bceac2c9
3 changed files with 3 additions and 7 deletions

View File

@@ -53,10 +53,6 @@ void Interval::setElement(int i, double f) {
}
}
void Interval::setNeedRecompute(bool needrecompute) {
m_needCompute = needrecompute;
}
void Interval::reset() {
m_start = 0.0;
m_end = 10.0;

View File

@@ -18,8 +18,8 @@ public:
void setEnd(double f);
void setStep(double f);
void setElement(int i, double f);
bool NeedRecompute() const { return m_needCompute; }
void setNeedRecompute(bool needrecompute);
bool needCompute() const { return m_needCompute; }
void setNeedCompute(bool compute){ m_needCompute = compute;}
void reset();
void clear();
// TODO: decide the max number of elements after optimization

View File

@@ -85,7 +85,7 @@ int IntervalParameterController::reusableParameterCellCount(int type) {
}
void IntervalParameterController::buttonAction() {
m_interval->setNeedRecompute(true);
m_interval->setNeedCompute(true);
StackViewController * stack = stackController();
stack->pop();
if (stack->depth() > 1) {