From: Hugo Beauzée-Luyssen Date: Mon, 17 Oct 2011 17:47:14 +0000 (+0200) Subject: dshow: Removing useless const_cast X-Git-Tag: 1.2.0-pre1~149 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d8076c365062e9f90e122e5b5cbbf1230850d435;p=vlc dshow: Removing useless const_cast Signed-off-by: Jean-Baptiste Kempf --- diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp index c5ee319c7d..eb829b511e 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(p_item->ppsz_list[i]) ); - free( const_cast(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;