Closed Bug 337367 Opened 20 years ago Closed 13 years ago

Eliminate NS_NewLocalFileWithFSSpec and NS_NewLocalFileWithFSRef

Categories

(Core :: XPCOM, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mark, Assigned: mark)

Details

Bug 326668 comment 22. Replace these with: nsCOMPtr<nsILocalFile> lf; NS_NewNativeLocalFile(EmptyString(), PR_FALSE, getter_AddRefs(lf)); nsCOMPtr<nsILocalFileMac> lfm(do_QueryInterface(lf)); lfm->InitWithFSRef(theFSRef); OR lfm->InitWithFSSpec(theFSSpec);
Wouldn't it be nicer not to have uninitialized/half-initialized objects around?
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.