infoicons: avoid extern CInfoIcons; use getInstance() instead of this

Origin commit data
------------------
Commit: 5a34b06137
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-03 (Wed, 03 Jan 2018)

Origin message was:
------------------
- infoicons: avoid extern CInfoIcons; use getInstance() instead of this
This commit is contained in:
vanhofen
2018-01-03 10:49:50 +01:00
parent 6ea9cc9e45
commit dc27f0567c
10 changed files with 25 additions and 35 deletions

View File

@@ -38,7 +38,6 @@
#include <driver/screen_max.h>
#include <gui/infoicons.h>
extern CInfoIcons *InfoIcons; /* neutrino.cpp */
typedef struct menu_data_t
{
@@ -106,7 +105,7 @@ int CInfoIconsSetup::exec(CMenuTarget* parent, const std::string &actionKey)
res = menu_return::RETURN_EXIT;
}
else if(actionKey.substr(0,18) == "infoicons_switch") {
InfoIcons->switchInfoIconsOnOff();
CInfoIcons::getInstance()->switchInfoIconsOnOff();
res = menu_return::RETURN_EXIT_ALL;
}