work around gcc bug with MI

This commit is contained in:
bienvenu%netscape.com 1999-06-16 00:25:14 +00:00
parent 47a4c1cc91
commit d7aae3beca

View File

@ -42,6 +42,11 @@
static NS_DEFINE_CID(kCMailDB, NS_MAILDB_CID);
static NS_DEFINE_CID(kMsgFilterServiceCID, NS_MSGFILTERSERVICE_CID);
// we need this because of an egcs 1.0 (and possibly gcc) compiler bug
// that doesn't allow you to call ::nsISupports::GetIID() inside of a class
// that multiply inherits from nsISupports
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
/* the following macros actually implement addref, release and query interface for our component. */
NS_IMPL_ISUPPORTS_INHERITED(nsMsgMailboxParser, nsParseMailMessageState, nsIStreamListener);
@ -1732,7 +1737,7 @@ nsresult nsParseNewMailState::MoveIncorporatedMessage(nsIMsgDBHdr *mailHdr,
lockedFolder = do_QueryInterface(destIFolder);
nsISupports *myThis;
QueryInterface(::nsISupports::GetIID(), (void **) &myThis);
QueryInterface(kISupportsIID, (void **) &myThis);
nsCOMPtr <nsISupports> myISupports = dont_QueryInterface(myThis);