return(NS_OK);
rv = gRDF->GetResource(HTTPINDEX_NAMESPACE_URI "Comment",  &kHTTPIndex_Comment); if (NS_FAILED(rv)) return rv;  rv = gRDF->GetResource(HTTPINDEX_NAMESPACE_URI "Filename", &kHTTPIndex_Filename); if (NS_FAILED(rv)) return rv;  rv = gRDF->GetResource(HTTPINDEX_NAMESPACE_URI "Loading",  &kHTTPIndex_Loading); if (NS_FAILED(rv)) return rv;  rv = gRDF->GetLiteral(nsAutoString("true").GetUnicode(), &kTrueLiteral); if (NS_FAILED(rv)) return rv;  for (Field* field = gFieldTable; field->mName; ++field) { nsCAutoString str(HTTPINDEX_NAMESPACE_URI); str += field->mName;  rv = gRDF->GetResource(str, &field->mProperty); if (NS_FAILED(rv)) return rv; } } return NS_OK;
nsHTTPIndex::Init(){	nsresult	rv;	// set initial/default encoding to ISO-8859-1 (not UTF-8)	mEncoding = "ISO-8859-1";	rv = CommonInit();	if (NS_FAILED(rv))	return(rv);	// (do this last) register this as a named data source with the RDF service	rv = mDirRDF->RegisterDataSource(this, PR_FALSE);	if (NS_FAILED(rv)) return(rv);	return(NS_OK);}