Bug 667277 - Don't use already_AddRefed::get in nsAccessible::GetURI; r=surkov

This commit is contained in:
Ms2ger 2011-07-03 11:53:40 +02:00
parent e2dd282c90
commit 87a9e995de

View File

@ -2581,7 +2581,7 @@ nsAccessible::GetURI(PRInt32 aIndex, nsIURI **aURI)
if (aIndex < 0 || aIndex >= static_cast<PRInt32>(AnchorCount()))
return NS_ERROR_INVALID_ARG;
*aURI = AnchorURIAt(aIndex).get();
nsRefPtr<nsIURI>(AnchorURIAt(aIndex)).forget(aURI);
return NS_OK;
}