mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Followup patch for bug 311827. nsIContent::GetAttr now returns a bool.
r/sr=bz
This commit is contained in:
parent
4029572119
commit
a94ba80d50
@ -226,7 +226,7 @@ nsXULContentUtils::GetElementRefResource(nsIContent* aElement, nsIRDFResource**
|
||||
PRUnichar buf[128];
|
||||
nsFixedString uri(buf, NS_ARRAY_LENGTH(buf), 0);
|
||||
|
||||
rv = aElement->GetAttr(kNameSpaceID_None, nsXULAtoms::ref, uri);
|
||||
aElement->GetAttr(kNameSpaceID_None, nsXULAtoms::ref, uri);
|
||||
if (!uri.IsEmpty()) {
|
||||
// We'll use rdf_MakeAbsolute() to translate this to a URL.
|
||||
nsCOMPtr<nsIDocument> doc = aElement->GetDocument();
|
||||
|
Loading…
Reference in New Issue
Block a user