Cast some parameters to PRUnichar * from jschar * to make the Mac happy.

This commit is contained in:
mccabe%netscape.com 2000-08-09 23:42:24 +00:00
Родитель 3d0f283f15
Коммит 28cb72d740
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -1082,7 +1082,7 @@ XPCConvert::JSErrorToXPCException(JSContext* cx,
nsAutoString bestMessage; nsAutoString bestMessage;
if(report && report->ucmessage) if(report && report->ucmessage)
{ {
bestMessage = report->ucmessage; bestMessage = (const PRUnichar *)report->ucmessage;
} }
else if(message) else if(message)
{ {
@ -1104,7 +1104,8 @@ XPCConvert::JSErrorToXPCException(JSContext* cx,
data = new nsScriptError(); data = new nsScriptError();
NS_ADDREF(data); NS_ADDREF(data);
data->Init(newMessage, newSourceName, report->uclinebuf, report->lineno, data->Init(newMessage, newSourceName,
(const PRUnichar *)report->uclinebuf, report->lineno,
report->uctokenptr - report->uclinebuf, report->flags, report->uctokenptr - report->uclinebuf, report->flags,
"XPConnect JavaScript"); "XPConnect JavaScript");
nsMemory::Free((void *)newMessage); nsMemory::Free((void *)newMessage);