mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 667277 - Don't use already_AddRefed::get in nsAccessible::GetURI; r=surkov
This commit is contained in:
parent
e2dd282c90
commit
87a9e995de
@ -2581,7 +2581,7 @@ nsAccessible::GetURI(PRInt32 aIndex, nsIURI **aURI)
|
|||||||
if (aIndex < 0 || aIndex >= static_cast<PRInt32>(AnchorCount()))
|
if (aIndex < 0 || aIndex >= static_cast<PRInt32>(AnchorCount()))
|
||||||
return NS_ERROR_INVALID_ARG;
|
return NS_ERROR_INVALID_ARG;
|
||||||
|
|
||||||
*aURI = AnchorURIAt(aIndex).get();
|
nsRefPtr<nsIURI>(AnchorURIAt(aIndex)).forget(aURI);
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user