diff --git a/apps/shared/function_graph_controller.cpp b/apps/shared/function_graph_controller.cpp index 7004faf0c..9c1887dec 100644 --- a/apps/shared/function_graph_controller.cpp +++ b/apps/shared/function_graph_controller.cpp @@ -153,7 +153,7 @@ int FunctionGraphController::numberOfCurves() const { return functionStore()->numberOfActiveFunctions(); } -void FunctionGraphController::interestingRanges(InteractiveCurveViewRange * range) const { +void FunctionGraphController::interestingRanges(InteractiveCurveViewRange * range) { Poincare::Context * context = textFieldDelegateApp()->localContext(); constexpr int maxLength = 10; float xMins[maxLength], xMaxs[maxLength], yMins[maxLength], yMaxs[maxLength]; diff --git a/apps/shared/function_graph_controller.h b/apps/shared/function_graph_controller.h index 2f7c74723..c78086b96 100644 --- a/apps/shared/function_graph_controller.h +++ b/apps/shared/function_graph_controller.h @@ -17,7 +17,7 @@ public: void didBecomeFirstResponder() override; void viewWillAppear() override; - void interestingRanges(Shared::InteractiveCurveViewRange * range) const override; + void interestingRanges(Shared::InteractiveCurveViewRange * range) override; protected: float cursorTopMarginRatio() override { return 0.068f; } diff --git a/apps/shared/interactive_curve_view_range_delegate.h b/apps/shared/interactive_curve_view_range_delegate.h index 6dfb2c9a0..d09961b33 100644 --- a/apps/shared/interactive_curve_view_range_delegate.h +++ b/apps/shared/interactive_curve_view_range_delegate.h @@ -12,7 +12,7 @@ public: static constexpr float k_defaultXHalfRange = 10.0f; virtual float interestingXMin() const { return -k_defaultXHalfRange; } virtual bool defaultRangeIsNormalized() const { return false; } - virtual void interestingRanges(InteractiveCurveViewRange * range) const { assert(false); } + virtual void interestingRanges(InteractiveCurveViewRange * range) { assert(false); } virtual float addMargin(float x, float range, bool isVertical, bool isMin) = 0; virtual void updateZoomButtons() = 0; };