Closed
Bug 330420
Opened 19 years ago
Closed 19 years ago
Remove unnecessary nsIClassInfo dependencies
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
People
(Reporter: bryner, Assigned: bryner)
Details
Attachments
(1 file, 1 obsolete file)
88.00 KB,
patch
|
darin.moz
:
review+
|
Details | Diff | Splinter Review |
Currently, pretty much file in the source base includes nsIClassInfo.h via nsISupportsImpl.h. We should factor the nsIClassInfo implementation macros out into a new header and remove that dependency, since most consumers don't need it. My testing shows that with this change, about 2/3 of object files no longer include nsIClassInfo.h via any code path (tested by examining .deps/*.pp files).
While we're at it, nsIClassInfo.idl unnecessarily includes nsIProgrammingLanguage.idl. Very few consumers need this, really only objects which implement nsIClassInfo themselves.
Assignee | ||
Comment 1•19 years ago
|
||
Attachment #214969 -
Flags: review?(darin)
Comment 2•19 years ago
|
||
Over IM, I objected to including nsIClassInfoImpl.h from nsIClassInfo.h on the basis of wanting to keep frozen interfaces clean. Will it just be too painful to include it manually everywhere?
Assignee | ||
Comment 3•19 years ago
|
||
(In reply to comment #2)
> Over IM, I objected to including nsIClassInfoImpl.h from nsIClassInfo.h on the
> basis of wanting to keep frozen interfaces clean. Will it just be too painful
> to include it manually everywhere?
>
Oh, I misunderstood what you said. I thought you were just suggesting that we have the implementation macros factored out into a separate file, rather than inside a %{C++ section of nsIClassInfo.idl.
I can make that change if you'd like, it should be pretty straightforward.
Assignee | ||
Comment 4•19 years ago
|
||
Attachment #214969 -
Attachment is obsolete: true
Attachment #215065 -
Flags: review?(darin)
Attachment #214969 -
Flags: review?(darin)
Comment 5•19 years ago
|
||
Comment on attachment 215065 [details] [diff] [review]
patch rev 2
r=darin
Attachment #215065 -
Flags: review?(darin) → review+
Assignee | ||
Comment 6•19 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•