[apps/graph] Correct the initialisation of the application

Change-Id: I34883d5a6d00c6627d8668d560880ca52f65f7ba
This commit is contained in:
Émilie Feral
2016-10-20 16:05:55 +02:00
parent 927ba42e22
commit e99804b747
2 changed files with 1 additions and 12 deletions

View File

@@ -16,18 +16,6 @@ App::App(::Context * context) :
m_tabViewController(&m_inputViewController, &m_listStackViewController, &m_graphController, &m_valuesStackViewController),
m_inputViewController(this, &m_tabViewController)
{
Function * function = m_functionStore.addEmptyFunction();
function->setContent("(x-1)*(x+1)*x");
function = m_functionStore.addEmptyFunction();
function->setContent("x*x");
function = m_functionStore.addEmptyFunction();
function->setContent("3");
function = m_functionStore.addEmptyFunction();
function->setContent("x*x*x");
function = m_functionStore.addEmptyFunction();
function->setContent("1/(1+1/x)");
function = m_functionStore.addEmptyFunction();
function->setContent("1/(1+1/(1/x))");
}
ViewController * App::rootViewController() {

View File

@@ -12,6 +12,7 @@ constexpr const char * FunctionStore::k_functionNames[k_maxNumberOfFunctions];
FunctionStore::FunctionStore() :
m_numberOfFunctions(0)
{
addEmptyFunction();
}
Function * FunctionStore::functionAtIndex(int i) {