Followup patch for bug 311827. nsIContent::GetAttr now returns a bool.

r/sr=bz
This commit is contained in:
cvshook%sicking.cc 2005-11-07 19:03:54 +00:00
parent 4029572119
commit a94ba80d50

View File

@ -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();