[vlc-commits] qt4: complete_preferences: Simplifications

Hugo Beauzée-Luyssen git at videolan.org
Wed Apr 13 17:31:08 CEST 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Wed Apr 13 15:39:19 2011 +0200| [67673fdc744414d33411d8843e9346b0734ed48b] | committer: Jean-Baptiste Kempf

qt4: complete_preferences: Simplifications

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=67673fdc744414d33411d8843e9346b0734ed48b
---

 .../gui/qt4/components/complete_preferences.cpp    |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt4/components/complete_preferences.cpp b/modules/gui/qt4/components/complete_preferences.cpp
index 9702c6f..9f875cf 100644
--- a/modules/gui/qt4/components/complete_preferences.cpp
+++ b/modules/gui/qt4/components/complete_preferences.cpp
@@ -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()



More information about the vlc-commits mailing list