]> git.sesse.net Git - vlc/commitdiff
Qt4 - don't use a class member when you don't need it. Ref #19854
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 17 Apr 2007 17:34:28 +0000 (17:34 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 17 Apr 2007 17:34:28 +0000 (17:34 +0000)
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.hpp

index de5705baa8188c7c240603891934ec2b154e97ad..e037604e3fae47f605d7e44e75b1a5ac45cbb0b9 100644 (file)
@@ -69,7 +69,8 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
     ui.gridLayout->addWidget( dialogBox, 0, 0, 1, 3 );
 
     // But hide the two OK/Cancel buttons. Enable them for debug.
-    fileDialogAcceptBox = findChildren<QDialogButtonBox*>()[0];
+    QDialogButtonBox *fileDialogAcceptBox =
+                        findChildren<QDialogButtonBox*>()[0];
     fileDialogAcceptBox->hide();
 
     /* Ugly hacks to get the good Widget */
index 9378be6fc069e69fd979b29921e4206c8c1b9f30..7c83364733b1131ace5ab46d3d359d6a9b6bbf81 100644 (file)
 #include <QWidget>
 #include <QString>
 #include <QFileDialog>
+
 #include "ui/open_file.h"
 #include "ui/open_disk.h"
 #include "ui/open_net.h"
 #include "ui/open_capture.h"
-#include <QDialogButtonBox>
 
 class QLineEdit;
 
@@ -80,7 +80,6 @@ private:
     QStringList browse( QString );
     FileOpenBox *dialogBox;
     QLineEdit *lineFileEdit;
-    QDialogButtonBox *fileDialogAcceptBox;
 public slots:
     virtual void updateMRL();
 private slots: