mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
work around gcc bug with MI
This commit is contained in:
parent
47a4c1cc91
commit
d7aae3beca
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user