mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
fixed problem in testCRT. GetUnicode returns a const ptr
This commit is contained in:
parent
7d0d70355e
commit
354b1357dd
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user