Lines Matching defs:AddRef
67 NS_IMETHOD_(nsrefcnt) AddRef();
145 IFoo::AddRef()
148 printf("IFoo@%p::AddRef(), refcount --> %d\n",
202 // a typical factory function (that calls AddRef)
208 foop->AddRef();
294 // a typical factory function (that calls AddRef)
300 barp->AddRef();
432 printf("\n### Test 1: will a |nsCOMPtr| call |AddRef| on a pointer assigned into it?\n");
438 // [Shouldn't compile] Is it a compile time error to try to |AddRef| by hand?
439 //foop->AddRef();
447 printf("\n### Test 3: can you |AddRef| if you must?\n");
448 STATIC_CAST(IFoo*, foop)->AddRef();
466 // [Shouldn't compile] Is it a compile time error to omit |getter_[doesnt_]AddRef[s]|?
469 // [Shouldn't compile] Is it a compile time error to omit |getter_[doesnt_]AddRef[s]|?
545 raw_foo1p->AddRef();
548 raw_foo2p->AddRef();
550 printf("\n### Test 15: what if I don't want to |AddRef| when I construct?\n");
554 printf("\n### Test 16: what if I don't want to |AddRef| when I assign in?\n");