Convert over to module from factory

This commit is contained in:
kipp%netscape.com 1999-09-30 21:02:41 +00:00
parent 333f992477
commit 26d6400289
3 changed files with 6 additions and 6 deletions

View File

@ -29,7 +29,7 @@ IS_COMPONENT = 1
REQUIRES = libxpcom
CPPSRCS = \
nsCharDetDll.cpp \
nsCharDetModule.cpp \
nsObserverBase.cpp \
nsXMLEncodingObserver.cpp \
nsMetaCharsetObserver.cpp \

View File

@ -32,7 +32,7 @@ CSRCS= \
$(NULL)
CPPSRCS= \
nsCharDetDll.cpp \
nsCharDetModule.cpp \
nsMetaCharsetObserver.cpp \
nsXMLEncodingObserver.cpp \
nsObserverBase.cpp \
@ -43,7 +43,7 @@ CPPSRCS= \
$(NULL)
CPP_OBJS= \
.\$(OBJDIR)\nsCharDetDll.obj \
.\$(OBJDIR)\nsCharDetModule.obj \
.\$(OBJDIR)\nsMetaCharsetObserver.obj \
.\$(OBJDIR)\nsXMLEncodingObserver.obj \
.\$(OBJDIR)\nsObserverBase.obj \

View File

@ -15,11 +15,11 @@
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsCOMPtr.h"
#include "nsIModule.h"
#define NS_IMPL_IDS
#include "nsICharsetAlias.h"
#undef NS_IMPL_IDS
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "pratom.h"
#include "nsCharDetDll.h"
@ -308,7 +308,7 @@ nsCharDetModule::RegisterSelf(nsIComponentManager *aCompMgr,
}
// get the registry
nsIRegistry::Key key;
nsRegistryKey key;
nsIRegistry* registry;
rv = nsServiceManager::GetService(NS_REGISTRY_PROGID,
nsIRegistry::GetIID(),