From 77f4a9278736340e3bfbae7e91f2cc2cfbd38201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 4 Oct 2018 11:36:48 +0200 Subject: [PATCH] [apps] An expression model names contains the extension --- apps/graph/storage_cartesian_function.h | 2 +- apps/shared/storage_expression_model_store.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/graph/storage_cartesian_function.h b/apps/graph/storage_cartesian_function.h index 252945e81..98701712c 100644 --- a/apps/graph/storage_cartesian_function.h +++ b/apps/graph/storage_cartesian_function.h @@ -10,7 +10,7 @@ namespace Graph { class StorageCartesianFunction : public Shared::StorageFunction { public: static const char * Extension() { return Poincare::GlobalContext::funcExtension; } - static StorageCartesianFunction EmptyModel() { return StorageCartesianFunction("function", KDColorRed); } + static StorageCartesianFunction EmptyModel() { return StorageCartesianFunction("function.func", KDColorRed); } StorageCartesianFunction(const char * text = nullptr, KDColor color = KDColorBlack); StorageCartesianFunction(Ion::Storage::Record record); bool operator==(const StorageCartesianFunction & other) const { return record() == other.record(); } diff --git a/apps/shared/storage_expression_model_store.h b/apps/shared/storage_expression_model_store.h index 073f260f7..72de487c2 100644 --- a/apps/shared/storage_expression_model_store.h +++ b/apps/shared/storage_expression_model_store.h @@ -53,7 +53,7 @@ public: T addEmptyModel() { T newModel = T::EmptyModel(); // TODO: create the record data (color, isActive and expression) - Ion::Storage::sharedStorage()->createRecordWithExtension(newModel.name(), "func", nullptr, 0); //TODO + Ion::Storage::sharedStorage()->createRecordWithFullName(newModel.name(), nullptr, 0); //TODO return newModel; } void removeModel(T f) {