Fixed nsRepository -> nsComponentManager

This commit is contained in:
warren%netscape.com 1999-03-09 12:43:27 +00:00
Родитель d58459f342
Коммит 6a3f2455fa
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -25,6 +25,7 @@
#include "nsIRDFObserver.h" #include "nsIRDFObserver.h"
#include "nsIRDFResourceFactory.h" #include "nsIRDFResourceFactory.h"
#include "nsIServiceManager.h" #include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsString.h" #include "nsString.h"
#include "nsVoidArray.h" // XXX introduces dependency on raptorbase #include "nsVoidArray.h" // XXX introduces dependency on raptorbase
#include "nsRDFCID.h" #include "nsRDFCID.h"
@ -37,7 +38,7 @@
#include "prprf.h" #include "prprf.h"
#include "prio.h" #include "prio.h"
#include "prtime.h" #include "prtime.h"
#include "prlog.h"
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
// Interface IDs // Interface IDs
@ -272,9 +273,9 @@ NS_IMETHODIMP
nsHistoryDataSource::Init(const char* uri) nsHistoryDataSource::Init(const char* uri)
{ {
nsresult rv; nsresult rv;
if (NS_FAILED(rv = nsRepository::CreateInstance(kRDFInMemoryDataSourceCID, if (NS_FAILED(rv = nsComponentManager::CreateInstance(kRDFInMemoryDataSourceCID,
nsnull, kIRDFDataSourceIID, nsnull, kIRDFDataSourceIID,
(void**) &mInner))) (void**) &mInner)))
return rv; return rv;
if (NS_FAILED(rv = mInner->Init(uri))) if (NS_FAILED(rv = mInner->Init(uri)))