[vlc-commits] qt4: open_panels: Simplification

Hugo Beauzée-Luyssen git at videolan.org
Fri Apr 22 16:27:38 CEST 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Fri Apr 22 16:21:26 2011 +0200| [3da5ea41f9d572e261cff7810171d4817dbe2f91] | committer: Jean-Baptiste Kempf

qt4: open_panels: Simplification

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

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

 modules/gui/qt4/components/open_panels.cpp |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index 6d6af1c..08cfd48 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -1348,11 +1348,7 @@ void CaptureOpenPanel::advancedDialog()
         updateMRL();
         msg_Dbg( p_intf, "%s", qtu( advMRL ) );
     }
-    for( int i = 0; i < controls.size(); i++ )
-    {
-        ConfigControl *control = controls[i];
-        delete control ;
-    }
+    qDeleteAll( controls );
     delete adv;
     module_config_free( p_config );
     module_release (p_module);



More information about the vlc-commits mailing list