diff --git a/mozilla/base/tests/TestCRT.cpp b/mozilla/base/tests/TestCRT.cpp index 951a3a741cf..f04b922c270 100644 --- a/mozilla/base/tests/TestCRT.cpp +++ b/mozilla/base/tests/TestCRT.cpp @@ -32,8 +32,8 @@ static void Check(const char* s1, const char* s2, PRIntn n) PRIntn clib_case_n = PL_strncasecmp(s1, s2, n); nsAutoString t1(s1), t2(s2); - PRUnichar* us1 = t1.GetUnicode(); - PRUnichar* us2 = t2.GetUnicode(); + const PRUnichar* us1 = t1.GetUnicode(); + const PRUnichar* us2 = t2.GetUnicode(); PRIntn u = nsCRT::strcmp(us1, s2); PRIntn u_n = nsCRT::strncmp(us1, s2, n); diff --git a/mozilla/xpcom/tests/TestCRT.cpp b/mozilla/xpcom/tests/TestCRT.cpp index 951a3a741cf..f04b922c270 100644 --- a/mozilla/xpcom/tests/TestCRT.cpp +++ b/mozilla/xpcom/tests/TestCRT.cpp @@ -32,8 +32,8 @@ static void Check(const char* s1, const char* s2, PRIntn n) PRIntn clib_case_n = PL_strncasecmp(s1, s2, n); nsAutoString t1(s1), t2(s2); - PRUnichar* us1 = t1.GetUnicode(); - PRUnichar* us2 = t2.GetUnicode(); + const PRUnichar* us1 = t1.GetUnicode(); + const PRUnichar* us2 = t2.GetUnicode(); PRIntn u = nsCRT::strcmp(us1, s2); PRIntn u_n = nsCRT::strncmp(us1, s2, n);