mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 190020 GetResource should take AUTF8String
patch by cbiesinger@web.de r=cls sr=alecf
This commit is contained in:
parent
f0ad469279
commit
33e7c21a66
@ -985,8 +985,11 @@ RDFServiceImpl::GetResource(const nsACString& aURI, nsIRDFResource** aResource)
|
||||
{
|
||||
// Sanity checks
|
||||
NS_PRECONDITION(aResource != nsnull, "null ptr");
|
||||
NS_PRECONDITION(!aURI.IsEmpty(), "URI is empty");
|
||||
if (! aResource)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
if (aURI.IsEmpty())
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
const nsAFlatCString& flatURI = PromiseFlatCString(aURI);
|
||||
PR_LOG(gLog, PR_LOG_DEBUG, ("rdfserv get-resource %s", flatURI.get()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user