[apps] Avoid static casts

This commit is contained in:
Ruben Dashyan
2019-09-09 14:03:15 +02:00
committed by LeaNumworks
parent 569bcc26d2
commit d02ecf93a5
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ public:
bool XNTCanBeOverriden() const override { return false; }
CodePoint XNT() override;
NestedMenuController * variableBoxForInputEventHandler(InputEventHandler * textInput) override;
CartesianFunctionStore * functionStore() override { return static_cast<CartesianFunctionStore *>(Shared::FunctionApp::functionStore()); }
CartesianFunctionStore * functionStore() override { return snapshot()->functionStore(); }
Shared::Interval * intervalForType(Shared::CartesianFunction::PlotType plotType) {
return snapshot()->intervalForType(plotType);
}

View File

@@ -46,7 +46,7 @@ public:
// NestedMenuController * variableBoxForInputEventHandler(InputEventHandler * textInput) override;
CodePoint XNT() override { return 'n'; }
SequenceContext * localContext() override;
SequenceStore * functionStore() override { return static_cast<SequenceStore *>(Shared::FunctionApp::functionStore()); }
SequenceStore * functionStore() override { return snapshot()->functionStore(); }
Shared::Interval * interval() { return snapshot()->interval(); }
ValuesController * valuesController() override {
return &m_valuesController;