]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.cpp
Qt: Don't bypass (goto error) local variable declarations
[vlc] / modules / gui / qt4 / qt4.cpp
index 64d75a0eb794ee8ef6937137d315d8bbcc991b3e..73e84d539f141c3cae4cee1de2257a92c51e7e56 100644 (file)
@@ -183,6 +183,12 @@ static void ShowDialog   ( intf_thread_t *, int, int, intf_dialog_args_t * );
 #define ICONCHANGE_LONGTEXT N_( \
     "This option allows the interface to change its icon on various occasions.")
 
+static const int i_notification_list[] =
+    { NOTIFICATION_NEVER, NOTIFICATION_MINIMIZED, NOTIFICATION_ALWAYS };
+
+static const char *const psz_notification_list_text[] =
+    { N_("Never"), N_("When minimized"), N_("Always") };
+
 /**********************************************************************/
 vlc_module_begin ()
     set_shortname( "Qt" )
@@ -205,12 +211,6 @@ vlc_module_begin ()
 #endif
             SYSTRAY_TEXT, SYSTRAY_LONGTEXT, false)
 
-    static const int i_notification_list[] =
-        { NOTIFICATION_NEVER, NOTIFICATION_MINIMIZED, NOTIFICATION_ALWAYS };
-
-    static const char *const psz_notification_list_text[] =
-        { N_("Never"), N_("When minimized"), N_("Always") };
-
     add_integer( "qt-notification", NOTIFICATION_MINIMIZED,
                  NOTIFICATION_TEXT,
                  NOTIFICATION_LONGTEXT, false )