Changed some code to use XPCOM ref counting related macros
This commit is contained in:
@@ -406,22 +406,22 @@ nsresult HTMLStyleSheetImpl::QueryInterface(const nsIID& aIID,
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
if (aIID.Equals(kIHTMLStyleSheetIID)) {
|
||||
*aInstancePtrResult = (void*) ((nsIHTMLStyleSheet*)this);
|
||||
AddRef();
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
if (aIID.Equals(kIStyleSheetIID)) {
|
||||
*aInstancePtrResult = (void*) ((nsIStyleSheet*)this);
|
||||
AddRef();
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
if (aIID.Equals(kIStyleFrameConstructionIID)) {
|
||||
*aInstancePtrResult = (void*) ((nsIStyleFrameConstruction*)this);
|
||||
AddRef();
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
if (aIID.Equals(kISupportsIID)) {
|
||||
*aInstancePtrResult = (void*) this;
|
||||
AddRef();
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
return NS_NOINTERFACE;
|
||||
|
||||
Reference in New Issue
Block a user