mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
Bug 22805. Wrap NS_GetWeakReference() with getter_AddRefs(). Thanks beard! r=beard
This commit is contained in:
parent
44a3f6d0ed
commit
73e507347d
@ -1106,7 +1106,7 @@ XULContentSinkImpl::Init(nsIDocument* aDocument, nsIXULPrototypeDocument* aProto
|
||||
|
||||
nsresult rv;
|
||||
|
||||
mDocument = NS_GetWeakReference(aDocument);
|
||||
mDocument = getter_AddRefs(NS_GetWeakReference(aDocument));
|
||||
mPrototype = aPrototype;
|
||||
|
||||
rv = mPrototype->GetURI(getter_AddRefs(mDocumentURL));
|
||||
|
@ -1106,7 +1106,7 @@ XULContentSinkImpl::Init(nsIDocument* aDocument, nsIXULPrototypeDocument* aProto
|
||||
|
||||
nsresult rv;
|
||||
|
||||
mDocument = NS_GetWeakReference(aDocument);
|
||||
mDocument = getter_AddRefs(NS_GetWeakReference(aDocument));
|
||||
mPrototype = aPrototype;
|
||||
|
||||
rv = mPrototype->GetURI(getter_AddRefs(mDocumentURL));
|
||||
|
Loading…
Reference in New Issue
Block a user