]> git.sesse.net Git - vlc/commitdiff
Qt: Don't bypass (goto error) local variable declarations
authorFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 1 Mar 2012 23:46:28 +0000 (00:46 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 2 Mar 2012 00:35:43 +0000 (01:35 +0100)
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 )