зеркало из https://github.com/mozilla/gecko-dev.git
Fix specialized |CallQueryInterface| as per review by travis ... r=travis.
This commit is contained in:
Родитель
9c8ee3253d
Коммит
964ca8227e
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче