[vlc-commits] Qt, infopanels: code simplification
Jean-Baptiste Kempf
git at videolan.org
Mon Apr 25 23:05:08 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 25 23:04:39 2011 +0200| [5cf86fc8c07e208460e31cdc88bab6f5979b77db] | committer: Jean-Baptiste Kempf
Qt, infopanels: code simplification
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cf86fc8c07e208460e31cdc88bab6f5979b77db
---
modules/gui/qt4/components/info_panels.cpp | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules/gui/qt4/components/info_panels.cpp b/modules/gui/qt4/components/info_panels.cpp
index efa5aee..c8855dc 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -184,12 +184,9 @@ void MetaPanel::update( input_item_t *p_item )
else p_input = p_item;
char *psz_meta;
-#define UPDATE_META( meta, widget ) { \
- psz_meta = input_item_Get##meta( p_item ); \
- if( !EMPTY_STR( psz_meta ) ) \
- widget->setText( qfu( psz_meta ) ); \
- else \
- widget->setText( "" ); } \
+#define UPDATE_META( meta, widget ) { \
+ psz_meta = input_item_Get##meta( p_item ); \
+ widget->setText( !EMPTY_STR( psz_meta ) ? qfu( psz_meta ) : "" ); \
free( psz_meta );
#define UPDATE_META_INT( meta, widget ) { \
More information about the vlc-commits
mailing list