]> git.sesse.net Git - vlc/commitdiff
remove redundant TAB_APPEND_CPP
authorRafaël Carré <rafael.carre@gmail.com>
Fri, 19 Aug 2011 06:48:09 +0000 (02:48 -0400)
committerRafaël Carré <rafael.carre@gmail.com>
Sat, 20 Aug 2011 23:56:22 +0000 (19:56 -0400)
include/vlc_arrays.h
include/vlc_vlm.h

index c61c870b94dbd28e49d0bee39879d7a21bd0d54a..e2f7b30e5e846ebbe5c5586f09c5d9e4e6714aca 100644 (file)
@@ -107,8 +107,6 @@ static inline void *realloc_down( void *ptr, size_t size )
 
 #define TAB_APPEND( count, tab, p )             \
     TAB_APPEND_CAST( , count, tab, p )
-#define TAB_APPEND_CPP( type, count, tab, p )   \
-    TAB_APPEND_CAST( (type**), count, tab, p )
 
 #define TAB_FIND( count, tab, p, index )        \
   do {                                          \
index 6c9087685ae767226a0334072c9019b1132610cf..cf45439207ef402fd6c4040ba76b6ea9af3cb87f 100644 (file)
@@ -236,9 +236,9 @@ vlm_media_Copy( vlm_media_t *p_dst, const vlm_media_t *p_src )
         p_dst->psz_name = strdup( p_src->psz_name );
 
     for( i = 0; i < p_src->i_input; i++ )
-        TAB_APPEND_CPP( char, p_dst->i_input, p_dst->ppsz_input, strdup(p_src->ppsz_input[i]) );
+        TAB_APPEND_CAST( (char**), p_dst->i_input, p_dst->ppsz_input, strdup(p_src->ppsz_input[i]) );
     for( i = 0; i < p_src->i_option; i++ )
-        TAB_APPEND_CPP( char, p_dst->i_option, p_dst->ppsz_option, strdup(p_src->ppsz_option[i]) );
+        TAB_APPEND_CAST( (char**), p_dst->i_option, p_dst->ppsz_option, strdup(p_src->ppsz_option[i]) );
 
     if( p_src->psz_output )
         p_dst->psz_output = strdup( p_src->psz_output );