[graph] Do not keep a function pointer as member variable but a record.

Indeed, function pointers can become invalid at any point...
This commit is contained in:
Émilie Feral
2018-10-16 17:56:16 +02:00
parent 974519f61a
commit c70278941a
61 changed files with 510 additions and 401 deletions

View File

@@ -1,10 +1,12 @@
#include "storage_values_function_parameter_controller.h"
#include "storage_function_app.h"
#include <assert.h>
namespace Shared {
const char * StorageValuesFunctionParameterController::title() {
m_function->nameWithArgument(m_pageTitle, StorageFunction::k_maxNameWithArgumentSize, m_symbol);
StorageFunctionApp * myApp = static_cast<StorageFunctionApp *>(app());
myApp->functionStore()->modelForRecord(m_record)->nameWithArgument(m_pageTitle, StorageFunction::k_maxNameWithArgumentSize, m_symbol);
return m_pageTitle;
}