Creation of the docshell now uses the generic factory rather than it's own private Create method for instantiation of the nsDocShell class.

This commit is contained in:
tbogard@aol.net
2000-04-21 23:31:42 +00:00
parent 05a4840ab2
commit 4983fa11c4

View File

@@ -26,6 +26,10 @@
#include "nsDocShell.h"
// Factory Constructors
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDocShell)
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static NS_DEFINE_CID(kDocShellCID, NS_DOCSHELL_CID);
@@ -46,7 +50,7 @@ NSGetFactory(nsISupports* aServMgr,
nsIGenericFactory* fact;
if(aClass.Equals(kDocShellCID))
rv = NS_NewGenericFactory(&fact, nsDocShell::Create);
rv = NS_NewGenericFactory(&fact, nsDocShellConstructor);
else
rv = NS_NOINTERFACE;
@@ -101,7 +105,7 @@ NSUnregisterSelf(nsISupports* aServMgr, const char* aPath)
static nsModuleComponentInfo components[] =
{
{ "DocShell Component", NS_DOCSHELL_CID, NS_DOCSHELL_PROGID, nsDocShell::Create }
{ "DocShell Component", NS_DOCSHELL_CID, NS_DOCSHELL_PROGID, nsDocShellConstructor }
};