From de25fddc88052b6e6e92eb78983b8d77137c6cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 11 Oct 2018 12:02:55 +0200 Subject: [PATCH] [shared] StorageFunction: fix --- apps/shared/storage_function.cpp | 1 + apps/shared/storage_function_store.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/shared/storage_function.cpp b/apps/shared/storage_function.cpp index d88630ac4..ac980af51 100644 --- a/apps/shared/storage_function.cpp +++ b/apps/shared/storage_function.cpp @@ -1,4 +1,5 @@ #include "storage_function.h" +#include #include #include #include diff --git a/apps/shared/storage_function_store.cpp b/apps/shared/storage_function_store.cpp index ace60daaa..db57a5eb6 100644 --- a/apps/shared/storage_function_store.cpp +++ b/apps/shared/storage_function_store.cpp @@ -22,7 +22,7 @@ int StorageFunctionStore::numberOfActiveFunctions() const { } -StorageFunction * StorageFunctionStore::activeFunctionAtIndex(int i) { +StorageFunction * StorageFunctionStore::activeFunctionAtIndex(int i) const { assert(i >= 0 && i < numberOfDefinedModels()); int index = 0; int currentModelIndex = 0;