From d82bf53dc00bf53a30544dbc26b32f2f159cb028 Mon Sep 17 00:00:00 2001 From: "scc%netscape.com" Date: Tue, 7 Dec 1999 14:09:29 +0000 Subject: [PATCH] Adding an alternate version of |CallQueryInterface| as an experiment on behalf of travis. This function is not yet called, and should not effect the build or the runtime. r=hyatt git-svn-id: svn://10.0.0.236/trunk@55581 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/base/nsCOMPtr.h | 8 ++++++++ mozilla/xpcom/glue/nsCOMPtr.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/mozilla/xpcom/base/nsCOMPtr.h b/mozilla/xpcom/base/nsCOMPtr.h index 945d05f6f44..a80f5ea6d75 100644 --- a/mozilla/xpcom/base/nsCOMPtr.h +++ b/mozilla/xpcom/base/nsCOMPtr.h @@ -981,4 +981,12 @@ SameCOMIdentity( nsISupports* lhs, nsISupports* rhs ) return nsCOMPtr( do_QueryInterface(lhs) ) == nsCOMPtr( do_QueryInterface(rhs) ); } +template +inline +nsresult +CallQueryInterface( nsCOMPtr& aSourcePtr, T** aDestPtr ) + { + return CallQueryInterface(aSourcePtr.get(), aDestPtr); + } + #endif // !defined(nsCOMPtr_h___) diff --git a/mozilla/xpcom/glue/nsCOMPtr.h b/mozilla/xpcom/glue/nsCOMPtr.h index 945d05f6f44..a80f5ea6d75 100644 --- a/mozilla/xpcom/glue/nsCOMPtr.h +++ b/mozilla/xpcom/glue/nsCOMPtr.h @@ -981,4 +981,12 @@ SameCOMIdentity( nsISupports* lhs, nsISupports* rhs ) return nsCOMPtr( do_QueryInterface(lhs) ) == nsCOMPtr( do_QueryInterface(rhs) ); } +template +inline +nsresult +CallQueryInterface( nsCOMPtr& aSourcePtr, T** aDestPtr ) + { + return CallQueryInterface(aSourcePtr.get(), aDestPtr); + } + #endif // !defined(nsCOMPtr_h___)