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

git-svn-id: svn://10.0.0.236/trunk@66800 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
2000-04-21 23:31:42 +00:00
parent 16119f1693
commit cbdaeff8a6

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 }
};