[vlc-devel] commit: qt4: fix EMPTY_STR usage. ( Rémi Duraffort )

git version control git at videolan.org
Sat Apr 4 09:20:15 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Apr  4 09:14:08 2009 +0200| [39dcdf082cda82752cb270004cde1f9d974c5b3f] | committer: Rémi Duraffort 

qt4: fix EMPTY_STR usage.

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

 modules/gui/qt4/menus.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 7ba3f3a..d183654 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -87,9 +87,9 @@ void addDPStaticEntry( QMenu *menu,
                        const char *shortcut = NULL )
 {
     QAction *action = NULL;
-    if( !EMPTY_STR( icon ) > 0 )
+    if( !EMPTY_STR( icon ) )
     {
-        if( !EMPTY_STR( shortcut ) > 0 )
+        if( !EMPTY_STR( shortcut ) )
             action = menu->addAction( QIcon( icon ), text, THEDP,
                                       member, qtr( shortcut ) );
         else
@@ -97,7 +97,7 @@ void addDPStaticEntry( QMenu *menu,
     }
     else
     {
-        if( !EMPTY_STR( shortcut ) > 0 )
+        if( !EMPTY_STR( shortcut ) )
             action = menu->addAction( text, THEDP, member, qtr( shortcut ) );
         else
             action = menu->addAction( text, THEDP, member );




More information about the vlc-devel mailing list