From e99804b74774fd3c4d7e12435356b2aa3fc38b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 20 Oct 2016 16:05:55 +0200 Subject: [PATCH] [apps/graph] Correct the initialisation of the application Change-Id: I34883d5a6d00c6627d8668d560880ca52f65f7ba --- apps/graph/app.cpp | 12 ------------ apps/graph/function_store.cpp | 1 + 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/apps/graph/app.cpp b/apps/graph/app.cpp index 709e9f5ee..33c97a8ff 100644 --- a/apps/graph/app.cpp +++ b/apps/graph/app.cpp @@ -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() { diff --git a/apps/graph/function_store.cpp b/apps/graph/function_store.cpp index c51203d28..ad389d7f1 100644 --- a/apps/graph/function_store.cpp +++ b/apps/graph/function_store.cpp @@ -12,6 +12,7 @@ constexpr const char * FunctionStore::k_functionNames[k_maxNumberOfFunctions]; FunctionStore::FunctionStore() : m_numberOfFunctions(0) { + addEmptyFunction(); } Function * FunctionStore::functionAtIndex(int i) {