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

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


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

Unused variable

(cherry picked from commit 8d40ad0adaf5fb064c10fe2f3accee5f6ab949c1)

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

 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 692a2a3..2783f5e 100644
--- a/modules/gui/qt4/dialogs/external.cpp
+++ b/modules/gui/qt4/dialogs/external.cpp
@@ -180,9 +180,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