Fixing hpux bustage. r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@154442 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -745,10 +745,12 @@ nsLocalFile::CopyToNative(nsIFile *newParent, const nsACString &newName)
|
||||
#endif
|
||||
|
||||
// actually create the file.
|
||||
nsCOMPtr<nsLocalFile> newFile = new nsLocalFile();
|
||||
nsLocalFile *newFile = new nsLocalFile();
|
||||
if (!newFile)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
nsCOMPtr<nsILocalFile> fileRef(newFile); // release on exit
|
||||
|
||||
rv = newFile->InitWithNativePath(newPathName);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user