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:
scc%netscape.com 1999-12-07 14:09:29 +00:00
Родитель db5cd594e2
Коммит 8c4ec2ebea
2 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -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___)