Bug 22805. Wrap NS_GetWeakReference() with getter_AddRefs(). Thanks beard! r=beard

This commit is contained in:
waterson%netscape.com 2000-01-06 20:01:56 +00:00
parent 44a3f6d0ed
commit 73e507347d
2 changed files with 2 additions and 2 deletions

View File

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

View File

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