return weakPtr->QueryReferent(NS_GET_IID(nsIObserver), aItemPtr);
return weakPtr->QueryReferent(NS_GET_IID(nsIObserver), (void **)aItemPtr);
nsObserverListEnumerator::CurrentItem( nsISupports** aItemPtr )	{		NS_ASSERTION(mTargetArray, "must enumerate over an non-null list");		NS_ASSERTION(aItemPtr, "must supply a place to put the result");		nsWeakPtr weakPtr = getter_AddRefs(NS_REINTERPRET_CAST(nsIWeakReference*, mTargetArray->ElementAt(mCurrentItemIndex)));		if ( !aItemPtr || !weakPtr )			return NS_ERROR_NULL_POINTER;		return weakPtr->QueryReferent(NS_GET_IID(nsIObserver), aItemPtr);	}