fix type equivalence between |PRUnichar| and |jschar| now that |PRUnchar| may be |wchar_t| on select platforms

git-svn-id: svn://10.0.0.236/trunk@72073 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org
2000-06-12 23:52:31 +00:00
parent a4265a293d
commit fd1efd70c8
37 changed files with 77 additions and 77 deletions

View File

@@ -104,7 +104,7 @@ XPInstallErrorReporter(JSContext *cx, const char *message, JSErrorReport *report
PRUint32 column = report->uctokenptr - report->uclinebuf;
rv = errorObject->Init(report->ucmessage, newFileUni, report->uclinebuf,
rv = errorObject->Init(NS_REINTERPRET_CAST(const PRUnichar*, report->ucmessage), newFileUni, NS_REINTERPRET_CAST(const PRUnichar*, report->uclinebuf),
report->lineno, column, report->flags,
"XPInstall JavaScript");
nsMemory::Free((void *)newFileUni);
@@ -142,7 +142,7 @@ XPInstallErrorReporter(JSContext *cx, const char *message, JSErrorReport *report
logMessage.AppendInt(report->lineno, 10);
logMessage.AppendWithConversion("\t");
if (report->ucmessage)
logMessage.Append( report->ucmessage );
logMessage.Append( NS_REINTERPRET_CAST(const PRUnichar*, report->ucmessage) );
else
logMessage.AppendWithConversion( message );