зеркало из https://github.com/mozilla/pjs.git
Fixing platform bustage only caught by SunOS Workshop. Need a |const| in a cast to avoid casting away |const|-ness. r=jdunn
This commit is contained in:
Родитель
54e569a787
Коммит
1c92045198
|
@ -307,7 +307,7 @@ struct nsCharTraits<char>
|
|||
const char*
|
||||
find( const char* s, size_t n, char c )
|
||||
{
|
||||
return NS_STATIC_CAST(char*, memchr(s, to_int_type(c), n));
|
||||
return NS_STATIC_CAST(const char*, memchr(s, to_int_type(c), n));
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
@ -433,7 +433,7 @@ struct nsCharTraits<wchar_t>
|
|||
const wchar_t*
|
||||
find( const wchar_t* s, size_t n, wchar_t c )
|
||||
{
|
||||
return NS_STATIC_CAST(wchar_t*, wmemchr(s, to_int_type(c), n));
|
||||
return NS_STATIC_CAST(const wchar_t*, wmemchr(s, to_int_type(c), n));
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
|
|
@ -307,7 +307,7 @@ struct nsCharTraits<char>
|
|||
const char*
|
||||
find( const char* s, size_t n, char c )
|
||||
{
|
||||
return NS_STATIC_CAST(char*, memchr(s, to_int_type(c), n));
|
||||
return NS_STATIC_CAST(const char*, memchr(s, to_int_type(c), n));
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
@ -433,7 +433,7 @@ struct nsCharTraits<wchar_t>
|
|||
const wchar_t*
|
||||
find( const wchar_t* s, size_t n, wchar_t c )
|
||||
{
|
||||
return NS_STATIC_CAST(wchar_t*, wmemchr(s, to_int_type(c), n));
|
||||
return NS_STATIC_CAST(const wchar_t*, wmemchr(s, to_int_type(c), n));
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
|
|
@ -307,7 +307,7 @@ struct nsCharTraits<char>
|
|||
const char*
|
||||
find( const char* s, size_t n, char c )
|
||||
{
|
||||
return NS_STATIC_CAST(char*, memchr(s, to_int_type(c), n));
|
||||
return NS_STATIC_CAST(const char*, memchr(s, to_int_type(c), n));
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
@ -433,7 +433,7 @@ struct nsCharTraits<wchar_t>
|
|||
const wchar_t*
|
||||
find( const wchar_t* s, size_t n, wchar_t c )
|
||||
{
|
||||
return NS_STATIC_CAST(wchar_t*, wmemchr(s, to_int_type(c), n));
|
||||
return NS_STATIC_CAST(const wchar_t*, wmemchr(s, to_int_type(c), n));
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
|
Загрузка…
Ссылка в новой задаче