mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
neutrino.cpp: remove initGlobals(), global variables initialized to 0 anyway
This commit is contained in:
@@ -188,27 +188,6 @@ extern const char * locale_real_names[]; /* #include <system/locals_intern.h> */
|
||||
// USERMENU
|
||||
const char* usermenu_button_def[SNeutrinoSettings::BUTTON_MAX]={"red","green","yellow","blue"};
|
||||
|
||||
static void initGlobals(void)
|
||||
{
|
||||
g_fontRenderer = NULL;
|
||||
|
||||
g_RCInput = NULL;
|
||||
g_Timerd = NULL;
|
||||
g_RemoteControl = NULL;
|
||||
|
||||
g_EpgData = NULL;
|
||||
g_InfoViewer = NULL;
|
||||
g_EventList = NULL;
|
||||
g_videoSettings = NULL;
|
||||
|
||||
g_Locale = new CLocaleManager;
|
||||
g_PluginList = NULL;
|
||||
InfoClock = NULL;
|
||||
g_CamHandler = NULL;
|
||||
g_Radiotext = NULL;
|
||||
g_volume = NULL;
|
||||
}
|
||||
|
||||
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
+ CNeutrinoApp - Constructor, initialize g_fontRenderer +
|
||||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||
@@ -1763,6 +1742,8 @@ TIMER_START();
|
||||
cs_api_init();
|
||||
cs_register_messenger(CSSendMessage);
|
||||
|
||||
g_Locale = new CLocaleManager;
|
||||
|
||||
int loadSettingsErg = loadSetup(NEUTRINO_SETTINGS_FILE);
|
||||
|
||||
initialize_iso639_map();
|
||||
@@ -3611,7 +3592,6 @@ int main(int argc, char **argv)
|
||||
close(i);
|
||||
#endif
|
||||
tzset();
|
||||
initGlobals();
|
||||
|
||||
return CNeutrinoApp::getInstance()->run(argc, argv);
|
||||
}
|
||||
|
Reference in New Issue
Block a user