Hi,
I have a nsCOMPtr like this:
nsCOMPtr<nsIDOMNode> childNode;
myNode->GetFirstChild(getter_AddRefs(childNode));
And I have a function like this:
void myFunc (nsIDOMNode* aNode {
...
}
My question is "is it safe for me to pass childNode to myFunc"?
like this:
myFunc(childNode);
my concern is when will the childNode be called?
What do I need to do to make sure the ref count is adjusted correctly?
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom