[vlc-devel] commit: Unused variable ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Aug 13 22:36:36 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 13 23:04:57 2009 +0300| [8d40ad0adaf5fb064c10fe2f3accee5f6ab949c1] | committer: Rémi Denis-Courmont 

Unused variable

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

 modules/gui/qt4/dialogs/external.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/dialogs/external.cpp b/modules/gui/qt4/dialogs/external.cpp
index 5c08f62..69fa27e 100644
--- a/modules/gui/qt4/dialogs/external.cpp
+++ b/modules/gui/qt4/dialogs/external.cpp
@@ -157,9 +157,8 @@ void DialogHandler::requestAnswer (vlc_object_t *, void *value)
         ? box->addButton ("&" + qfu(data->yes), QMessageBox::YesRole) : NULL;
     QAbstractButton *no = (data->no != NULL)
         ? box->addButton ("&" + qfu(data->no), QMessageBox::NoRole) : NULL;
-    QAbstractButton *cancel = (data->cancel != NULL)
-        ? box->addButton ("&" + qfu(data->cancel), QMessageBox::RejectRole)
-        : NULL;
+    if (data->cancel != NULL)
+        box->addButton ("&" + qfu(data->cancel), QMessageBox::RejectRole);
 
     box->exec ();
 




More information about the vlc-devel mailing list