[apps] Remove AppsContainerStorage::sharedContainer

Use AppsContainer::sharedAppsContainer instead. The AppsContainerStorage
is initialised in AppsContainer.
This commit is contained in:
Ruben Dashyan
2019-07-16 18:02:59 +02:00
committed by EmilieNumworks
parent 055d601854
commit e9d098bacb
6 changed files with 12 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
#include "apps_container_storage.h"
#include "apps_container.h"
#include "global_preferences.h"
#include <poincare/init.h>
@@ -32,8 +32,8 @@ void ion_main(int argc, char * argv[]) {
* $ ./epsilon.elf --code-script hello_world.py:print("hello") --code-lock-on-console
*/
const char * appNames[] = {"home", EPSILON_APPS_NAMES};
for (int j = 0; j < AppsContainerStorage::sharedContainer()->numberOfApps(); j++) {
App::Snapshot * snapshot = AppsContainerStorage::sharedContainer()->appSnapshotAtIndex(j);
for (int j = 0; j < AppsContainer::sharedAppsContainer()->numberOfApps(); j++) {
App::Snapshot * snapshot = AppsContainer::sharedAppsContainer()->appSnapshotAtIndex(j);
int cmp = strcmp(argv[i]+2, appNames[j]);
if (cmp == '-') {
snapshot->setOpt(argv[i]+2+strlen(appNames[j])+1, argv[i+1]);
@@ -42,5 +42,5 @@ void ion_main(int argc, char * argv[]) {
}
}
#endif
AppsContainerStorage::sharedContainer()->run();
AppsContainer::sharedAppsContainer()->run();
}