Fix specialized |CallQueryInterface| as per review by travis ... r=travis.

This commit is contained in:
scc%netscape.com 1999-12-08 01:44:06 +00:00
Родитель 9c8ee3253d
Коммит 964ca8227e
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -981,10 +981,10 @@ SameCOMIdentity( nsISupports* lhs, nsISupports* rhs )
return nsCOMPtr<nsISupports>( do_QueryInterface(lhs) ) == nsCOMPtr<nsISupports>( do_QueryInterface(rhs) );
}
template <class T>
template <class SourceType, class DestinationType>
inline
nsresult
CallQueryInterface( nsCOMPtr<T>& aSourcePtr, T** aDestPtr )
CallQueryInterface( nsCOMPtr<SourceType>& aSourcePtr, DestinationType** aDestPtr )
{
return CallQueryInterface(aSourcePtr.get(), aDestPtr);
}

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

@ -981,10 +981,10 @@ SameCOMIdentity( nsISupports* lhs, nsISupports* rhs )
return nsCOMPtr<nsISupports>( do_QueryInterface(lhs) ) == nsCOMPtr<nsISupports>( do_QueryInterface(rhs) );
}
template <class T>
template <class SourceType, class DestinationType>
inline
nsresult
CallQueryInterface( nsCOMPtr<T>& aSourcePtr, T** aDestPtr )
CallQueryInterface( nsCOMPtr<SourceType>& aSourcePtr, DestinationType** aDestPtr )
{
return CallQueryInterface(aSourcePtr.get(), aDestPtr);
}