Backing out last change to fix linux bustage. r=cmanske

This commit is contained in:
mcafee%netscape.com 2000-07-12 01:47:00 +00:00
Родитель 5e34c8be8b
Коммит deb01365ed
2 изменённых файлов: 8 добавлений и 4 удалений

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

@ -1388,7 +1388,8 @@ nsEditorShell::FinishHTMLSource(void)
if (mHTMLSourceMode)
{
// Call the JS command to convert and switch to previous edit mode
return DoControllerCommand(NS_ConvertASCIItoUCS2("cmd_FinishHTMLSource"));
nsAutoString command(NS_LITERAL_STRING("cmd_FinishHTMLSource"));
return DoControllerCommand(command);
}
return NS_OK;
}
@ -1650,7 +1651,8 @@ nsEditorShell::CheckAndSaveDocument(const PRUnichar *reasonToSave, PRBool *_retv
else if (mHTMLSourceMode) // result == eNo
{
// User doesn't want to save document, so we just cancel source mode
rv = DoControllerCommand(NS_ConvertASCIItoUCS2("cmd_CancelHTMLSource"));
nsAutoString command(NS_LITERAL_STRING("cmd_CancelHTMLSource"));
rv = DoControllerCommand(command);
}
}
}

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

@ -1388,7 +1388,8 @@ nsEditorShell::FinishHTMLSource(void)
if (mHTMLSourceMode)
{
// Call the JS command to convert and switch to previous edit mode
return DoControllerCommand(NS_ConvertASCIItoUCS2("cmd_FinishHTMLSource"));
nsAutoString command(NS_LITERAL_STRING("cmd_FinishHTMLSource"));
return DoControllerCommand(command);
}
return NS_OK;
}
@ -1650,7 +1651,8 @@ nsEditorShell::CheckAndSaveDocument(const PRUnichar *reasonToSave, PRBool *_retv
else if (mHTMLSourceMode) // result == eNo
{
// User doesn't want to save document, so we just cancel source mode
rv = DoControllerCommand(NS_ConvertASCIItoUCS2("cmd_CancelHTMLSource"));
nsAutoString command(NS_LITERAL_STRING("cmd_CancelHTMLSource"));
rv = DoControllerCommand(command);
}
}
}