зеркало из https://github.com/mozilla/pjs.git
Cast some parameters to PRUnichar * from jschar * to make the Mac happy.
This commit is contained in:
Родитель
3d0f283f15
Коммит
28cb72d740
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче