fix for #48397 - make search work again by avoiding a double-initialization of the search root URI

r=scottip
This commit is contained in:
alecf%netscape.com 2000-08-18 06:39:12 +00:00
Родитель 2e1cdf3f0a
Коммит 00040d9a71
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -48,6 +48,11 @@ nsMsgSearchDataSource::nsMsgSearchDataSource()
nsresult
nsMsgSearchDataSource::Init()
{
nsresult rv;
rv = nsMsgRDFDataSource::Init();
if (NS_FAILED(rv))
return rv;
if (gInstanceCount++ == 0) {
getRDFService()->GetResource(NC_RDF_MESSAGECHILD, getter_AddRefs(kNC_MessageChild));
@ -74,7 +79,7 @@ NS_IMPL_ISUPPORTS2(nsMsgSearchDataSource,
nsIRDFDataSource,
nsIMsgSearchNotify)
NS_IMETHODIMP
NS_IMETHODIMP
nsMsgSearchDataSource::OnSearchHit(nsIMsgDBHdr* aMsgHdr, nsIMsgFolder *folder)
{
nsresult rv;