Use the macro on all platforms. Thanks to pierre for helping me make sure

it doesnt break the mac.  I verified that it works on unix and windows.
This commit is contained in:
ramiro@netscape.com
1999-03-09 19:19:02 +00:00
parent c8ab337ccd
commit e3bcc511c0
8 changed files with 176 additions and 506 deletions

View File

@@ -351,18 +351,12 @@ NS_EXPORT nsresult NS_NewAppShellService(nsIAppShellService** aResult)
//----------------------------------------------------------------------
// Entry point to create nsAppShellService factory instances...
#if defined(TEMPLATES_IN_nsXPComFactory_EXORCISM)
NS_DEF_FACTORY(AppShellService,nsAppShellService)
#endif
nsresult NS_NewAppShellServiceFactory(nsIFactory** aResult)
{
nsresult rv = NS_OK;
#if defined(TEMPLATES_IN_nsXPComFactory_EXORCISM)
nsIFactory* inst = new nsAppShellServiceFactory;
#else
nsIFactory* inst = new nsFactory<nsAppShellService>();
#endif
if (nsnull == inst) {
rv = NS_ERROR_OUT_OF_MEMORY;
}