rv = gRDFService->GetLiteral(url.GetUnicode(), &literal);
rv = gRDFService->GetLiteral(url.get(), &literal);
LocalSearchDataSource::GetTargets(nsIRDFResource *source,                           nsIRDFResource *property,                           PRBool tv,                           nsISimpleEnumerator **targets /* out */){	NS_PRECONDITION(source != nsnull, "null ptr");	if (! source)		return NS_ERROR_NULL_POINTER;	NS_PRECONDITION(property != nsnull, "null ptr");	if (! property)		return NS_ERROR_NULL_POINTER;	NS_PRECONDITION(targets != nsnull, "null ptr");	if (! targets)		return NS_ERROR_NULL_POINTER;	nsresult		rv = NS_ERROR_FAILURE;	// we only have positive assertions in the find data source.	if (! tv)		return rv;	if (isFindURI(source))	{		if (property == kNC_Child)		{			return getFindResults(source, targets);		}		else if (property == kNC_Name)		{			nsCOMPtr<nsIRDFLiteral>	name;			rv = getFindName(source, getter_AddRefs(name));			if (NS_FAILED(rv)) return rv;			nsISimpleEnumerator* result =			new nsSingletonEnumerator(name);			if (! result)				return NS_ERROR_OUT_OF_MEMORY;			NS_ADDREF(result);			*targets = result;			return NS_OK;		}		else if (property == kRDF_type)		{			nsXPIDLCString	uri;			rv = kNC_FindObject->GetValue( getter_Copies(uri) );			if (NS_FAILED(rv)) return rv;			nsAutoString	url(uri);			nsIRDFLiteral	*literal;			rv = gRDFService->GetLiteral(url.GetUnicode(), &literal);			if (NS_FAILED(rv)) return rv;			nsISimpleEnumerator* result = new nsSingletonEnumerator(literal);			NS_RELEASE(literal);			if (! result)				return NS_ERROR_OUT_OF_MEMORY;			NS_ADDREF(result);			*targets = result;			return NS_OK;		}		else if (property == kNC_pulse)		{			nsAutoString	pulse("15");			nsIRDFLiteral	*pulseLiteral;			rv = gRDFService->GetLiteral(pulse.GetUnicode(), &pulseLiteral);			if (NS_FAILED(rv)) return rv;			nsISimpleEnumerator* result = new nsSingletonEnumerator(pulseLiteral);			NS_RELEASE(pulseLiteral);			if (! result)				return NS_ERROR_OUT_OF_MEMORY;			NS_ADDREF(result);			*targets = result;			return NS_OK;		}	}	return NS_NewEmptyEnumerator(targets);}