Lines Matching refs:weakRefFactory
78 nsCOMPtr<nsISupportsWeakReference> weakRefFactory = do_QueryInterface(anObserver);
79 NS_ASSERTION(weakRefFactory, "AddObserver: trying weak object that doesnt support nsIWeakReference");
80 if ( weakRefFactory )
81 observerRef = getter_AddRefs(NS_STATIC_CAST(nsISupports*, NS_GetWeakReference(weakRefFactory)));
85 nsCOMPtr<nsISupportsWeakReference> weakRefFactory = do_QueryInterface(anObserver);
86 NS_ASSERTION(!weakRefFactory, "Your object supports weak references, but is being added with a strong reference");
114 nsCOMPtr<nsISupportsWeakReference> weakRefFactory = do_QueryInterface(anObserver);
116 if (weakRefFactory) {
117 observerRef = getter_AddRefs(NS_STATIC_CAST(nsISupports*, NS_GetWeakReference(weakRefFactory)));
200 nsCOMPtr<nsIWeakReference> weakRefFactory = do_QueryInterface(*aResult);
201 if ( weakRefFactory ) {
202 nsCOMPtr<nsISupports> weakref = do_QueryReferent(weakRefFactory);