fixed problem in testCRT. GetUnicode returns a const ptr

git-svn-id: svn://10.0.0.236/trunk@7146 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1998-08-03 21:33:32 +00:00
parent 5748a66d65
commit 0609a6954b
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);