if ( outEnumerator == NULL ) return NS_ERROR_INVALID_ARG;  *outEnumerator = new nsWindowEnumerator( inType, *this ); if (*outEnumerator ) return NS_OK;  return NS_ERROR_OUT_OF_MEMORY; };
if (outEnumerator == NULL) return NS_ERROR_INVALID_ARG;  nsAutoLock lock(mListLock); nsAppShellWindowEnumerator *enumerator = new nsASDOMWindowEarlyToLateEnumerator(inType, *this); if (enumerator) return enumerator->QueryInterface(NS_GET_IID(nsISimpleEnumerator) , (void**)outEnumerator);  return NS_ERROR_OUT_OF_MEMORY; }
NS_METHOD nsWindowMediator::GetEnumerator( const PRUnichar* inType, nsISimpleEnumerator** outEnumerator ){		if ( outEnumerator == NULL )			return NS_ERROR_INVALID_ARG;			*outEnumerator = new nsWindowEnumerator( inType, *this );		if (*outEnumerator )			return NS_OK;				return NS_ERROR_OUT_OF_MEMORY;};	