[apps/statistics] Factorize HistogramParamCtrlr::setParamAtIdx

This commit is contained in:
Léa Saviot
2020-02-10 14:24:54 +01:00
committed by Émilie Feral
parent 250f4ec3dd
commit 59aea9ca83
2 changed files with 32 additions and 53 deletions

View File

@@ -31,9 +31,8 @@ uint32_t Store::barChecksum() const {
/* Histogram bars */
void Store::setBarWidth(double barWidth) {
if (barWidth > 0.0) {
m_barWidth = barWidth;
}
assert(barWidth > 0.0);
m_barWidth = barWidth;
}
double Store::heightOfBarAtIndex(int series, int index) const {