rv = gRDF->GetUnicodeResource(newURL, res);
nsAutoString			newURLStr(newURL); char				*newURLCStr = newURLStr.ToNewCString(); if (!newURLCStr) { return(NS_ERROR_NULL_POINTER); } rv = gRDF->GetResource(newURLCStr, res); delete [] newURLCStr;
nsBookmarksService::getResourceFromLiteralNode(nsIRDFNode *node, nsIRDFResource **res){	nsresult	rv;	nsCOMPtr<nsIRDFResource>	newURLRes = do_QueryInterface(node);	if (newURLRes)	{		*res = newURLRes;		NS_IF_ADDREF(*res);		return(NS_OK);	}	nsCOMPtr<nsIRDFLiteral>		newURLLit = do_QueryInterface(node);	if (!newURLLit)	{		return(NS_ERROR_INVALID_ARG);	}	const PRUnichar			*newURL = nsnull;	newURLLit->GetValueConst(&newURL);	if (!newURL)	{		return(NS_ERROR_NULL_POINTER);	}	rv = gRDF->GetUnicodeResource(newURL, res);	return(rv);}