Closed Bug 739001 Opened 13 years ago Closed 12 years ago

Provide a single-argument nsIDirectoryService.get

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: darktrojan, Unassigned)

References

Details

Attachments

(1 file)

There's about a hundred uses of nsIDirectoryService.get in mozilla-central. Almost of all of them will be changed once bug 682360 is fixed, and the second argument will be redundant, so I'm filing this to make the cleanup simpler.
Attached patch WIPSplinter Review
I don't expect that this will land as-is, I'll probably move the code into the single-argument method and leave the QI'ing in the double-argument method.
Attachment #609046 - Flags: feedback?(benjamin)
(In reply to Geoff Lankow (:darktrojan) from comment #0) > There's about a hundred uses of nsIDirectoryService.get in mozilla-central. Not to mention these: http://mxr.mozilla.org/mozilla-central/search?string=NS_GetSpecialDirectory
This feels mostly like churn. The directory service is an abominable API to begin with; if we're going to start mucking with the API we should look at making it really right, not just putting lipstick on the pig.
Attachment #609046 - Flags: feedback?(benjamin) → feedback-
Assignee: geoff → nobody
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: