void nsCOMPtr_base::assign_with_AddRef( nsISupports* rawPtr ) { if ( rawPtr ) NSCAP_ADDREF(this, rawPtr); assign_assuming_AddRef(rawPtr); }
void nsCOMPtr_base::assign_from_qi( const nsQueryInterface qi, const nsIID& iid ) { nsISupports* newRawPtr; if ( NS_FAILED( qi(iid, NS_REINTERPRET_CAST(void**, &newRawPtr)) ) ) newRawPtr = 0; assign_assuming_AddRef(newRawPtr); }
void nsCOMPtr_base::assign_from_helper( const nsCOMPtr_helper& helper, const nsIID& iid ) { nsISupports* newRawPtr; if ( NS_FAILED( helper(iid, NS_REINTERPRET_CAST(void**, &newRawPtr)) ) ) newRawPtr = 0; assign_assuming_AddRef(newRawPtr); }
void nsCOMPtr_base::assign_from_gs_cid( const nsGetServiceByCID gs, const nsIID& iid ) { nsISupports* newRawPtr; if ( NS_FAILED( gs(iid, NS_REINTERPRET_CAST(void**, &newRawPtr)) ) ) newRawPtr = 0; assign_assuming_AddRef(newRawPtr); }
void nsCOMPtr_base::assign_from_gs_contractid_with_error( const nsGetServiceByContractIDWithError& gs, const nsIID& iid ) { nsISupports* newRawPtr; if ( NS_FAILED( gs(iid, NS_REINTERPRET_CAST(void**, &newRawPtr)) ) ) newRawPtr = 0; assign_assuming_AddRef(newRawPtr); }
void nsCOMPtr_base::assign_with_AddRef(nsISupports* aRawPtr) { if (aRawPtr) { NSCAP_ADDREF(this, aRawPtr); } assign_assuming_AddRef(aRawPtr); }
void nsCOMPtr_base::assign_from_qi(const nsQueryInterface aQI, const nsIID& aIID) { void* newRawPtr; if (NS_FAILED(aQI(aIID, &newRawPtr))) { newRawPtr = 0; } assign_assuming_AddRef(static_cast<nsISupports*>(newRawPtr)); }
void nsCOMPtr_base::assign_from_gs_contractid(const nsGetServiceByContractID aGS, const nsIID& aIID) { void* newRawPtr; if (NS_FAILED(aGS(aIID, &newRawPtr))) { newRawPtr = 0; } assign_assuming_AddRef(static_cast<nsISupports*>(newRawPtr)); }
void nsCOMPtr_base::assign_from_gs_cid_with_error( const nsGetServiceByCIDWithError& aGS, const nsIID& aIID) { void* newRawPtr; if (NS_FAILED(aGS(aIID, &newRawPtr))) { newRawPtr = 0; } assign_assuming_AddRef(static_cast<nsISupports*>(newRawPtr)); }
void nsCOMPtr_base::assign_from_helper(const nsCOMPtr_helper& aHelper, const nsIID& aIID) { void* newRawPtr; if (NS_FAILED(aHelper(aIID, &newRawPtr))) { newRawPtr = 0; } assign_assuming_AddRef(static_cast<nsISupports*>(newRawPtr)); }