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

git-svn-id: svn://10.0.0.236/trunk@74070 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mcafee%netscape.com 2000-07-12 01:47:00 +00:00
parent d6a267cf1e
commit b3d537adfc
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);
}
}
}