Closed Bug 39271 Opened 26 years ago Closed 26 years ago

[FIXED] NS_IMPL_QUERY_INTERFACE is deprecated

Categories

(MailNews Core :: MIME, defect, P3)

x86
FreeBSD
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Joerg.Brunsmann, Assigned: rhp)

Details

as you can see in http://lxr.mozilla.org/mozilla/source/xpcom/base/nsISupportsUtils.h#495 the macro NS_IMPL_QUERY_INTERFACE is deprecated. The new macro-based QI allows to switch to a table driven solution. The following patch switches to NS_IMPL_ISUPPORTS1 Index: mailnews/mime/cthandlers/signstub/nsMimeContentTypeHandler.cpp =================================================================== RCS file: /cvsroot/mozilla/mailnews/mime/cthandlers/signstub/nsMimeContentTypeHandler.cpp,v retrieving revision 1.2 diff -r1.2 nsMimeContentTypeHandler.cpp 52c52 < * The following macros actually implement addref, release and --- > * The following macro actually implements addref, release and 55,57c55 < NS_IMPL_ADDREF(nsMimeContentTypeHandler) < NS_IMPL_RELEASE(nsMimeContentTypeHandler) < NS_IMPL_QUERY_INTERFACE(nsMimeContentTypeHandler, NS_GET_IID(nsIMimeContentTypeHandler)); /* we need to pass in the interface ID of this interface */ --- > NS_IMPL_ISUPPORTS1(nsMimeContentTypeHandler, nsIMimeContentTypeHandler)
NS_IMPL_QUERY_INTERFACE is also used in /mailnews/mime/abstatus/src/nsMimeMiscStatus.cpp, line 48
Summary: NS_IMPL_QUERY_INTERFACE is deprecated → NS_IMPL_QUERY_INTERFACE is deprecated
Thanks. I am not going to bother with nsMimeMiscStatus since that isn't really part of the product anymore. - rhp
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: NS_IMPL_QUERY_INTERFACE is deprecated → [FIXED] NS_IMPL_QUERY_INTERFACE is deprecated
Target Milestone: --- → M18
This made its way into the tree on another major landing. - rhp
This made its way into the tree on another major landing. - rhp
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
QA Contact: lchiang → stephend
That macro is not in /mime anymore (but exists in other portions of mail/news, seperate bug though). http://lxr.mozilla.org/seamonkey/search?string=NS_IMPL_QUERY_INTERFACE Verified FIXED
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.