[vlc-commits] dshow: Removing useless const_cast
    Hugo Beauzée-Luyssen 
    git at videolan.org
       
    Tue Oct 18 12:26:55 CEST 2011
    
    
  
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Oct 17 19:47:14 2011 +0200| [d8076c365062e9f90e122e5b5cbbf1230850d435] | committer: Jean-Baptiste Kempf
dshow: Removing useless const_cast
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d8076c365062e9f90e122e5b5cbbf1230850d435
---
 modules/access/dshow/dshow.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp
index c5ee319..eb829b5 100644
--- a/modules/access/dshow/dshow.cpp
+++ b/modules/access/dshow/dshow.cpp
@@ -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;
    
    
More information about the vlc-commits
mailing list