OK, now only nsCOMPtr.h includes nsIWeakReference, and not the other way around. I'll probably have to make a header file just to contain the one-line typedef I moved.

This commit is contained in:
scc%netscape.com 1999-08-03 08:10:08 +00:00
parent 4756a19b59
commit f8db1fc479
3 changed files with 6 additions and 5 deletions

View File

@ -864,5 +864,7 @@ CallQueryInterface( nsISupports* aSource, nsCOMPtr<DestinationType>* aDestinatio
// this calls the _other_ |CallQueryInterface|
}
typedef nsCOMPtr<nsIWeakReference> nsWeakPtr;
#endif // !defined(nsCOMPtr_h___)

View File

@ -16,11 +16,8 @@ interface nsISupportsWeakReference : nsISupports
%{C++
#ifndef nsCOMPtr_h___
#include "nsCOMPtr.h"
#endif
typedef nsCOMPtr<nsIWeakReference> nsWeakPtr;
// typedef nsCOMPtr<nsIWeakReference> nsWeakPtr;
// ...this definition actually exists in nsCOMPtr.h, sorry
nsIWeakReference* NS_GetWeakReference( nsISupports* );
// ...convenience. Get a weak reference (if possible) without doing the query yourself

View File

@ -864,5 +864,7 @@ CallQueryInterface( nsISupports* aSource, nsCOMPtr<DestinationType>* aDestinatio
// this calls the _other_ |CallQueryInterface|
}
typedef nsCOMPtr<nsIWeakReference> nsWeakPtr;
#endif // !defined(nsCOMPtr_h___)