mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
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:
parent
4756a19b59
commit
f8db1fc479
@ -864,5 +864,7 @@ CallQueryInterface( nsISupports* aSource, nsCOMPtr<DestinationType>* aDestinatio
|
||||
// this calls the _other_ |CallQueryInterface|
|
||||
}
|
||||
|
||||
typedef nsCOMPtr<nsIWeakReference> nsWeakPtr;
|
||||
|
||||
|
||||
#endif // !defined(nsCOMPtr_h___)
|
||||
|
@ -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
|
||||
|
@ -864,5 +864,7 @@ CallQueryInterface( nsISupports* aSource, nsCOMPtr<DestinationType>* aDestinatio
|
||||
// this calls the _other_ |CallQueryInterface|
|
||||
}
|
||||
|
||||
typedef nsCOMPtr<nsIWeakReference> nsWeakPtr;
|
||||
|
||||
|
||||
#endif // !defined(nsCOMPtr_h___)
|
||||
|
Loading…
x
Reference in New Issue
Block a user