fixing build bustage for qnx photon embedding

this is from the nsI*File freeze
This commit is contained in:
timeless@mac.com
2002-05-15 23:03:01 +00:00
parent 6d963c3b06
commit 5c143b39f4
3 changed files with 6 additions and 6 deletions

View File

@@ -188,7 +188,7 @@ EmbedWindow::SaveAs(char *fname)
if (persist)
{
nsCOMPtr<nsILocalFile> file;
NS_NewLocalFile(fname, PR_TRUE, getter_AddRefs(file));
NS_NewNativeLocalFile(nsDependentCString(fname), PR_TRUE, getter_AddRefs(file));
persist->SaveDocument(nsnull, file, nsnull, nsnull, 0, 0);
return (0);
}
@@ -203,7 +203,7 @@ EmbedWindow::SaveURI(nsIURI *uri, char *fname)
if (persist)
{
nsCOMPtr<nsILocalFile> file;
NS_NewLocalFile(fname, PR_TRUE, getter_AddRefs(file));
NS_NewNativeLocalFile(nsDependentCString(fname), PR_TRUE, getter_AddRefs(file));
persist->SetProgressListener((nsIWebProgressListener*) w->EmbedRef->mProgress);
persist->SaveURI(uri, nsnull, file);
return (0);