]> git.sesse.net Git - vlc/commitdiff
dshow: Removing useless const_cast
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Mon, 17 Oct 2011 17:47:14 +0000 (19:47 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Oct 2011 10:05:40 +0000 (12:05 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/dshow/dshow.cpp

index c5ee319c7d770d08bf3d7c2eb7d6933e256cdfbd..eb829b511e433c073eff6b7ba611796cb6e9e5e1 100644 (file)
@@ -2024,8 +2024,8 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name,
         /* Keep the 2 first entries */
         for( i = 2; i < p_item->i_list; i++ )
         {
-            free( const_cast<char *>(p_item->ppsz_list[i]) );
-            free( const_cast<char *>(p_item->ppsz_list_text[i]) );
+            free( p_item->ppsz_list[i] );
+            free( p_item->ppsz_list_text[i] );
         }
         /* TODO: Remove when no more needed */
         p_item->ppsz_list[i] = NULL;