[EMAIL PROTECTED] wrote: > My question is "is it safe for me to pass childNode to myFunc"? > > like this: > myFunc(childNode);
Yes. > What do I need to do to make sure the ref count is adjusted correctly? Nothing. The operator() on nsCOMPtr will pass in the pointer without adding any additional references (other than the one the nsCOMPtr is already holding). -Boris _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
