nsrefcnt xptiInterfaceInfo::AddRef(void) { nsrefcnt cnt = NS_AtomicIncrementRefcnt(mRefCnt); NS_LOG_ADDREF(this, cnt, "xptiInterfaceInfo", sizeof(*this)); return cnt; }
NS_IMETHODIMP_(nsrefcnt) nsPrintProgress::AddRef(void) { NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); nsrefcnt count; count = NS_AtomicIncrementRefcnt(mRefCnt); //NS_LOG_ADDREF(this, count, "nsPrintProgress", sizeof(*this)); return count; }
nsrefcnt nsXPCWrappedJS::AddRef(void) { nsrefcnt cnt = NS_AtomicIncrementRefcnt(mRefCnt); NS_LOG_ADDREF(this, cnt, "nsXPCWrappedJS", sizeof(*this)); if (2 == cnt && IsValid()) { XPCJSRuntime* rt = mClass->GetRuntime(); rt->AddWrappedJSRoot(this); } return cnt; }