diff --git a/mozilla/string/public/nsCharTraits.h b/mozilla/string/public/nsCharTraits.h index f734180ff53..fe0376e8fe0 100644 --- a/mozilla/string/public/nsCharTraits.h +++ b/mozilla/string/public/nsCharTraits.h @@ -307,7 +307,7 @@ struct nsCharTraits 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 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 diff --git a/mozilla/xpcom/ds/nsCharTraits.h b/mozilla/xpcom/ds/nsCharTraits.h index f734180ff53..fe0376e8fe0 100644 --- a/mozilla/xpcom/ds/nsCharTraits.h +++ b/mozilla/xpcom/ds/nsCharTraits.h @@ -307,7 +307,7 @@ struct nsCharTraits 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 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 diff --git a/mozilla/xpcom/string/public/nsCharTraits.h b/mozilla/xpcom/string/public/nsCharTraits.h index f734180ff53..fe0376e8fe0 100644 --- a/mozilla/xpcom/string/public/nsCharTraits.h +++ b/mozilla/xpcom/string/public/nsCharTraits.h @@ -307,7 +307,7 @@ struct nsCharTraits 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 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