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.


git-svn-id: svn://10.0.0.236/trunk@23339 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ramiro%netscape.com
1999-03-09 19:19:02 +00:00
parent c954953e18
commit f05974cb48
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;
}