fixed problem in testCRT. GetUnicode returns a const ptr

This commit is contained in:
rickg%netscape.com 1998-08-03 21:33:32 +00:00
parent 7d0d70355e
commit 354b1357dd
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);