diff --git a/xpcom/base/nsCOMPtr.h b/xpcom/base/nsCOMPtr.h index 9d85b5ae3ac1..505bf343ac5a 100644 --- a/xpcom/base/nsCOMPtr.h +++ b/xpcom/base/nsCOMPtr.h @@ -632,7 +632,7 @@ class nsCOMPtr // ...and finally, anything else we might need to construct from // can exploit the |nsCOMPtr_helper| facility { - assign_from_helper(helper, NS_GET_IID(T)); + assign_from_helper(helper, NS_GET_IID(nsISupports)); } @@ -670,7 +670,7 @@ class nsCOMPtr // ...and finally, anything else we might need to assign from // can exploit the |nsCOMPtr_helper| facility. { - assign_from_helper(rhs, NS_GET_IID(T)); + assign_from_helper(rhs, NS_GET_IID(nsISupports)); return *this; } diff --git a/xpcom/glue/nsCOMPtr.h b/xpcom/glue/nsCOMPtr.h index 9d85b5ae3ac1..505bf343ac5a 100644 --- a/xpcom/glue/nsCOMPtr.h +++ b/xpcom/glue/nsCOMPtr.h @@ -632,7 +632,7 @@ class nsCOMPtr // ...and finally, anything else we might need to construct from // can exploit the |nsCOMPtr_helper| facility { - assign_from_helper(helper, NS_GET_IID(T)); + assign_from_helper(helper, NS_GET_IID(nsISupports)); } @@ -670,7 +670,7 @@ class nsCOMPtr // ...and finally, anything else we might need to assign from // can exploit the |nsCOMPtr_helper| facility. { - assign_from_helper(rhs, NS_GET_IID(T)); + assign_from_helper(rhs, NS_GET_IID(nsISupports)); return *this; }