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
parent 7a8885ff90
commit 6c8757c6d2
2 changed files with 8 additions and 4 deletions

View File

@ -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);
}
}
}

View File

@ -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);
}
}
}