]> git.sesse.net Git - vlc/commitdiff
qt4: complete_preferences: Simplifications
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Wed, 13 Apr 2011 13:39:19 +0000 (15:39 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 13 Apr 2011 15:30:10 +0000 (17:30 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/components/complete_preferences.cpp

index 9702c6f93f0306edadccf038e7dc5401e78f7ee5..9f875cfec7575ec22104e06d244a8e373394f27d 100644 (file)
@@ -503,12 +503,8 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
 
 void AdvPrefsPanel::apply()
 {
-    QList<ConfigControl *>::Iterator i;
-    for( i = controls.begin() ; i != controls.end() ; i++ )
-    {
-        ConfigControl *c = qobject_cast<ConfigControl *>(*i);
-        c->doApply( p_intf );
-    }
+    foreach ( ConfigControl *cfg, controls )
+        cfg->doApply( p_intf );
 }
 
 void AdvPrefsPanel::clean()