Switching to idl-ed nsIObserverService

git-svn-id: svn://10.0.0.236/trunk@33219 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
law%netscape.com
1999-05-29 02:13:10 +00:00
parent 76225b5e9f
commit 03b76d98f7
2 changed files with 4 additions and 10 deletions

View File

@@ -23,9 +23,6 @@
#include "nsIObserverService.h"
#include "nsIServiceManager.h"
static NS_DEFINE_IID(kIObserverServiceIID, NS_IOBSERVERSERVICE_IID);
static NS_DEFINE_IID(kObserverServiceCID, NS_OBSERVERSERVICE_CID);
/***************************************************************
First, define the tagstack class
@@ -673,12 +670,12 @@ void CObserverDictionary::UnregisterObservers() {
void CObserverDictionary::RegisterObservers() {
nsresult result = NS_OK;
nsIObserverService* theObserverService = nsnull;
result = nsServiceManager::GetService(kObserverServiceCID, kIObserverServiceIID,
result = nsServiceManager::GetService(NS_OBSERVERSERVICE_PROGID, nsIObserverService::GetIID(),
(nsISupports**) &theObserverService, nsnull);
if(result == NS_OK){
nsString theTopic("htmlparser");
nsIEnumerator* theEnum;
result = theObserverService->EnumerateObserverList(&theEnum, &theTopic);
result = theObserverService->EnumerateObserverList(theTopic, &theEnum);
if(result == NS_OK){
nsIElementObserver* theElementObserver;
nsISupports *inst;