зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
db5cd594e2
Коммит
8c4ec2ebea
|
@ -981,4 +981,12 @@ SameCOMIdentity( nsISupports* lhs, nsISupports* rhs )
|
|||
return nsCOMPtr<nsISupports>( do_QueryInterface(lhs) ) == nsCOMPtr<nsISupports>( do_QueryInterface(rhs) );
|
||||
}
|
||||
|
||||
template <class T>
|
||||
inline
|
||||
nsresult
|
||||
CallQueryInterface( nsCOMPtr<T>& aSourcePtr, T** aDestPtr )
|
||||
{
|
||||
return CallQueryInterface(aSourcePtr.get(), aDestPtr);
|
||||
}
|
||||
|
||||
#endif // !defined(nsCOMPtr_h___)
|
||||
|
|
|
@ -981,4 +981,12 @@ SameCOMIdentity( nsISupports* lhs, nsISupports* rhs )
|
|||
return nsCOMPtr<nsISupports>( do_QueryInterface(lhs) ) == nsCOMPtr<nsISupports>( do_QueryInterface(rhs) );
|
||||
}
|
||||
|
||||
template <class T>
|
||||
inline
|
||||
nsresult
|
||||
CallQueryInterface( nsCOMPtr<T>& aSourcePtr, T** aDestPtr )
|
||||
{
|
||||
return CallQueryInterface(aSourcePtr.get(), aDestPtr);
|
||||
}
|
||||
|
||||
#endif // !defined(nsCOMPtr_h___)
|
||||
|
|
Загрузка…
Ссылка в новой задаче