Fix for nsIFile delete conflicts with JS reserved name b=37406, r=dougt, sr=jst

Renamed all Delete methods to Remove.

--pete


git-svn-id: svn://10.0.0.236/trunk@99803 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pete%alphanumerica.com
2001-07-24 18:38:25 +00:00
parent 796fc1aa09
commit 63991fa7da
35 changed files with 69 additions and 69 deletions

View File

@@ -1088,7 +1088,7 @@ nsPluginStreamInfo::~nsPluginStreamInfo()
PR_FALSE,
getter_AddRefs(localFile));
if(NS_SUCCEEDED(res))
localFile->Delete(PR_FALSE);
localFile->Remove(PR_FALSE);
}
if (mFilePath)
PL_strfree(mFilePath);
@@ -1455,7 +1455,7 @@ nsPluginStreamListenerPeer::~nsPluginStreamListenerPeer()
nsCOMPtr<nsILocalFile> localFile;
nsresult res = NS_NewLocalFile(mLocalFile, PR_FALSE, getter_AddRefs(localFile));
if(NS_SUCCEEDED(res))
localFile->Delete(PR_FALSE);
localFile->Remove(PR_FALSE);
delete [] mLocalFile;
}
delete mDataForwardToRequest;
@@ -2806,7 +2806,7 @@ NS_IMETHODIMP nsPluginHostImpl::Destroy(void)
rv = pluginTmp->Append(kPluginTmpDirName);
if (NS_FAILED(rv)) return rv;
pluginTmp->Delete(PR_TRUE);
pluginTmp->Remove(PR_TRUE);
return NS_OK;
}