Lines Matching refs:mRawPtr

111   // Our use of nsCOMPtr_base::mRawPtr violates the C++ standard's aliasing
268 : mRawPtr(aRawPtr)
273 T* get() const { return mRawPtr; }
275 T* mRawPtr;
348 : mRawPtr(aRawPtr)
356 nsISupports* mRawPtr;
363 : mRawPtr(aRawPtr),
372 nsISupports* mRawPtr;
429 : mRawPtr(rawPtr)
443 NS_MAY_ALIAS_PTR(nsISupports) mRawPtr;
456 nsISupports* oldPtr = mRawPtr;
457 mRawPtr = newPtr;
477 #define NSCAP_CTOR_BASE(x) mRawPtr(x)
489 T* oldPtr = mRawPtr;
490 mRawPtr = newPtr;
498 T* mRawPtr;
507 NSCAP_LOG_RELEASE(this, mRawPtr);
508 if ( mRawPtr )
509 NSCAP_RELEASE(this, mRawPtr);
517 if ( mRawPtr )
519 nsCOMPtr<T> query_result( do_QueryInterface(mRawPtr) );
520 NS_ASSERTION(query_result.get() == mRawPtr, "QueryInterface needed");
540 : NSCAP_CTOR_BASE(aSmartPtr.mRawPtr)
543 if ( mRawPtr )
544 NSCAP_ADDREF(this, mRawPtr);
545 NSCAP_LOG_ASSIGNMENT(this, aSmartPtr.mRawPtr);
552 if ( mRawPtr )
553 NSCAP_ADDREF(this, mRawPtr);
559 : NSCAP_CTOR_BASE(aSmartPtr.mRawPtr)
562 NSCAP_LOG_ASSIGNMENT(this, aSmartPtr.mRawPtr);
599 assign_with_AddRef(rhs.mRawPtr);
616 assign_assuming_AddRef(rhs.mRawPtr);
652 nsISupports* temp = rhs.mRawPtr;
654 T* temp = rhs.mRawPtr;
656 NSCAP_LOG_ASSIGNMENT(&rhs, mRawPtr);
658 NSCAP_LOG_RELEASE(this, mRawPtr);
660 rhs.mRawPtr = mRawPtr;
661 mRawPtr = temp;
675 NSCAP_LOG_RELEASE(this, mRawPtr);
676 rhs = NS_REINTERPRET_CAST(T*, mRawPtr);
677 mRawPtr = temp;
693 return NS_REINTERPRET_CAST(nsDerivedSafe<T>*, mRawPtr);
711 NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsCOMPtr with operator->().");
750 NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsCOMPtr with operator*().");
766 return NS_REINTERPRET_CAST(T**, &mRawPtr);
799 : nsCOMPtr_base(aSmartPtr.mRawPtr)
802 if ( mRawPtr )
803 NSCAP_ADDREF(this, mRawPtr);
804 NSCAP_LOG_ASSIGNMENT(this, aSmartPtr.mRawPtr);
811 if ( mRawPtr )
812 NSCAP_ADDREF(this, mRawPtr);
817 : nsCOMPtr_base(aSmartPtr.mRawPtr)
820 NSCAP_LOG_ASSIGNMENT(this, aSmartPtr.mRawPtr);
855 assign_with_AddRef(rhs.mRawPtr);
871 assign_assuming_AddRef(rhs.mRawPtr);
904 nsISupports* temp = rhs.mRawPtr;
905 NSCAP_LOG_ASSIGNMENT(&rhs, mRawPtr);
907 NSCAP_LOG_RELEASE(this, mRawPtr);
909 rhs.mRawPtr = mRawPtr;
910 mRawPtr = temp;
919 NSCAP_LOG_RELEASE(this, mRawPtr);
920 rhs = mRawPtr;
921 mRawPtr = temp;
936 return NS_REINTERPRET_CAST(nsDerivedSafe<nsISupports>*, mRawPtr);
954 NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsCOMPtr with operator->().");
994 NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsCOMPtr with operator*().");
1010 return NS_REINTERPRET_CAST(nsISupports**, &mRawPtr);
1060 return NS_REINTERPRET_CAST(void**, &mRawPtr);