nsresult res = NS_OK; nsAutoString htmlTopic("htmlparser"); nsIObserverService* anObserverService = nsnull;
nsresult rv = NS_OK;
NS_IMETHODIMP nsMetaCharsetObserver::Start() {    nsresult res = NS_OK;    nsAutoString htmlTopic("htmlparser");    nsIObserverService* anObserverService = nsnull;    res = nsServiceManager::GetService(kObserverServiceCID,                                        nsIObserverService::GetIID(),                                       (nsISupports**) &anObserverService);    if(NS_FAILED(res))         goto done;         res = anObserverService->AddObserver(&mHack, &htmlTopic);    nsServiceManager::ReleaseService(kObserverServiceCID,                                     anObserverService);done:    return res;}