mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Removed unnecessary const_cast in wildcard.cpp
This commit is contained in:
parent
51d7d5d0da
commit
0c99fc5b4d
1 changed files with 1 additions and 1 deletions
|
@ -1060,7 +1060,7 @@ static int wildcard_expand_internal( const wchar_t *wc,
|
||||||
if( is_recursive )
|
if( is_recursive )
|
||||||
{
|
{
|
||||||
const wchar_t *end = wcschr( wc, ANY_STRING_RECURSIVE );
|
const wchar_t *end = wcschr( wc, ANY_STRING_RECURSIVE );
|
||||||
wchar_t *wc_sub = const_cast<wchar_t*>(wcsndup( wc, end-wc+1));
|
wchar_t *wc_sub = wcsndup( wc, end-wc+1);
|
||||||
partial_match = wildcard_match2( name, wc_sub, 1 );
|
partial_match = wildcard_match2( name, wc_sub, 1 );
|
||||||
free( wc_sub );
|
free( wc_sub );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue