From 0c99fc5b4dcf4f202ae47ccd8d4d380791e17bff Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Thu, 19 Jan 2012 22:23:25 +0530 Subject: [PATCH] Removed unnecessary const_cast in wildcard.cpp --- wildcard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wildcard.cpp b/wildcard.cpp index 698418958..115f9045e 100644 --- a/wildcard.cpp +++ b/wildcard.cpp @@ -1060,7 +1060,7 @@ static int wildcard_expand_internal( const wchar_t *wc, if( is_recursive ) { const wchar_t *end = wcschr( wc, ANY_STRING_RECURSIVE ); - wchar_t *wc_sub = const_cast(wcsndup( wc, end-wc+1)); + wchar_t *wc_sub = wcsndup( wc, end-wc+1); partial_match = wildcard_match2( name, wc_sub, 1 ); free( wc_sub ); }