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
Родитель 67bcd1cf0e
Коммит 30562c63a4
3 изменённых файлов: 6 добавлений и 6 удалений

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

@ -156,7 +156,7 @@ EmbedProgress::OnStateChange(nsIWebProgress *aWebProgress,
{
nsresult rv;
nsCOMPtr<nsILocalFile> fileToUse = do_CreateInstance( NS_LOCAL_FILE_CONTRACTID, &rv );
fileToUse->InitWithPath( moz->download_dest );
fileToUse->InitWithNativePath( nsDependentCString(moz->download_dest) );
PRBool equalToTempFile = PR_FALSE;
PRBool filetoUseAlreadyExists = PR_FALSE;
@ -167,10 +167,10 @@ EmbedProgress::OnStateChange(nsIWebProgress *aWebProgress,
// extract the new leaf name from the file location
nsXPIDLCString fileName;
fileToUse->GetLeafName(getter_Copies(fileName));
fileToUse->GetNativeLeafName(fileName);
nsCOMPtr<nsIFile> directoryLocation;
fileToUse->GetParent(getter_AddRefs(directoryLocation));
if( directoryLocation ) rv = tempFile->MoveTo(directoryLocation, fileName);
if( directoryLocation ) rv = tempFile->MoveToNative(directoryLocation, fileName);
}
moz->EmbedRef->app_launcher = NULL;

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

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

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

@ -966,7 +966,7 @@ StartupProfile(char *sProfileDir, char *sProfileName)
PRBool exists = PR_FALSE;
PRBool isDir = PR_FALSE;
profileDir = do_CreateInstance(NS_LOCAL_FILE_CONTRACTID);
rv = profileDir->InitWithPath(sProfileDir);
rv = profileDir->InitWithNativePath(nsDependentCString(sProfileDir));
if (NS_FAILED(rv))
return NS_ERROR_FAILURE;
profileDir->Exists(&exists);