mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user