return (*aFactory)->QueryInterface(nsIFactory::GetIID(), (void**)aFactory);
return (*aFactory)->QueryInterface(NS_GET_IID(nsIFactory), (void**)aFactory);
NSGetFactory(nsISupports* servMgr,             const nsCID &aClass,             const char *aClassName,             const char *aProgID,             nsIFactory **aFactory){  if (nsnull == aFactory) {    return NS_ERROR_NULL_POINTER;  }  *aFactory = new nsTimerQtFactory(aClass);  if (nsnull == aFactory) {    return NS_ERROR_OUT_OF_MEMORY;  }  return (*aFactory)->QueryInterface(nsIFactory::GetIID(), (void**)aFactory);  }