[apps/graph] Fix missing const_cast

This commit is contained in:
Léa Saviot
2019-09-04 15:25:06 +02:00
parent f388fe7252
commit 811768dcc2

View File

@@ -56,7 +56,7 @@ void IntervalParameterSelectorController::willDisplayCellForIndex(HighlightCell
}
Shared::CartesianFunction::PlotType IntervalParameterSelectorController::plotTypeAtRow(int j) const {
assert(0 <= j && j < numberOfRows());
assert(0 <= j && j < const_cast<IntervalParameterSelectorController *>(this)->numberOfRows());
return static_cast<Shared::CartesianFunction::PlotType>(j);
}