diff --git a/xpcom/base/nsISupportsUtils.h b/xpcom/base/nsISupportsUtils.h index 600606792076..49fbb2c78028 100644 --- a/xpcom/base/nsISupportsUtils.h +++ b/xpcom/base/nsISupportsUtils.h @@ -857,7 +857,7 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \ template inline nsrefcnt -ns_if_addref( T* expr ) +ns_if_addref( T expr ) // Making this a |inline| |template| allows |expr| to be evaluated only once, // yet still denies you the ability to |AddRef()| an |nsCOMPtr|. // Note that |NS_ADDREF()| already has this property in the non-logging case. diff --git a/xpcom/glue/nsISupportsUtils.h b/xpcom/glue/nsISupportsUtils.h index 600606792076..49fbb2c78028 100644 --- a/xpcom/glue/nsISupportsUtils.h +++ b/xpcom/glue/nsISupportsUtils.h @@ -857,7 +857,7 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \ template inline nsrefcnt -ns_if_addref( T* expr ) +ns_if_addref( T expr ) // Making this a |inline| |template| allows |expr| to be evaluated only once, // yet still denies you the ability to |AddRef()| an |nsCOMPtr|. // Note that |NS_ADDREF()| already has this property in the non-logging case.