diff --git a/xpcom/ds/nsObserverList.cpp b/xpcom/ds/nsObserverList.cpp index 742ed53fd0e..fa5bf63772f 100644 --- a/xpcom/ds/nsObserverList.cpp +++ b/xpcom/ds/nsObserverList.cpp @@ -130,7 +130,8 @@ nsObserverListEnumerator::CurrentItem( nsISupports** aItemPtr ) if ( !aItemPtr || !weakPtr ) return NS_ERROR_NULL_POINTER; - return weakPtr->QueryReferent(NS_GET_IID(nsIObserver), aItemPtr); + return weakPtr->QueryReferent(NS_GET_IID(nsIObserver), + (void **)aItemPtr); } NS_IMETHODIMP