[shared] Remove const qualifiers from interestingRanges

Change-Id: I794aa144af9dc9eab3090eea7fd54a7cdac2fd68
This commit is contained in:
Gabriel Ozouf
2020-11-17 12:17:22 +01:00
committed by LeaNumworks
parent ff220b7103
commit a8858023ba
3 changed files with 3 additions and 3 deletions

View File

@@ -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];

View File

@@ -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; }

View File

@@ -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;
};