Closed Bug 11557 Opened 25 years ago Closed 24 years ago

nsIFileSpec.idl should forward declare nsFileSpec

Categories

(Core :: XPCOM, defect, P5)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: beard, Assigned: dougt)

References

Details

Currently, it explicitly includes "nsFileSpec.h" which brings in a lot of extra
#includes for everybody, namely nsString.h, and friends. This causes lots of
source files to implicitly get nsString, nsCRT, etc.

In my tree, I've experimented with this and have had to touch the following list
of files to get them to correctly, explicitly #include nsString.h and nsCRT.h:

mozilla/mailnews/mime/emitters/src/nsEmitterUtils.cpp
mozilla/mailnews/imap/src/nsImapStringBundle.cpp
mozilla/mailnews/addrbook/src/nsCardDataSource.cpp
mozilla/xpfe/components/history/src/nsGlobalHistory.cpp
mozilla/layout/base/src/nsPresContext.cpp
mozilla/xpcom/components/xcDll.cpp
mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp
mozilla/mailnews/mime/emitters/src/nsMimeXmlEmitter.cpp
mozilla/mailnews/mime/emitters/src/nsMimeHtmlEmitter.cpp
mozilla/mailnews/compose/src/nsMsgComposeStringBundle.cpp
mozilla/netwerk/base/src/nsLoadGroup.cpp
mozilla/modules/libimg/src/if.cpp
mozilla/netwerk/protocol/about/src/nsAboutProtocolHandler.cpp
Assignee: dp → dougt
Do you want to check these changes in?
I have been propagating them forward but keep getting conflicts, so I filed this
bug to notify you of the problem. And there hasn't been a good time to check them
in. They're easy to find, just make the change to nsIFileSpec.idl, and things
will start to break, usually because they need either nsString.h or nsCRT.h.
Status: NEW → ASSIGNED
Target Milestone: M10
risky change before m9 tree closure.  Setting target milestone to m10.
moving to m11.
Target Milestone: M10 → M11
moving to m11.
Priority: P3 → P5
Target Milestone: M11 → M14
moving after beta.
Depends on: 13320
Depends on: 22047
will be fixed by 22047
users should not be using nsFileSpec any longer.
Target Milestone: M14 → M20
nsfilespec is dead.  
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.