Added NS_IMPL_AGGREGATED_QUERY_HEAD macro.

This commit is contained in:
warren%netscape.com 2000-01-10 23:14:32 +00:00
parent dc2bec46d9
commit cf1e6b2be9

View File

@ -32,7 +32,7 @@
#define NS_DECL_AGGREGATED \
NS_DECL_ISUPPORTS \
\
public: \
public: \
\
/* You must implement this operation instead of the nsISupports */ \
/* methods if you inherit from nsAggregated. */ \
@ -123,4 +123,14 @@ _class::Internal::Release(void) \
return agg->mRefCnt; \
} \
// for use with QI macros in nsISupportsUtils.h:
#define NS_IMPL_AGGREGATED_QUERY_HEAD(_class) \
NS_IMETHODIMP _class::AggregatedQueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
NS_ASSERTION(aInstancePtr, "AggregatedQueryInterface requires a non-NULL destination!"); \
if ( !aInstancePtr ) \
return NS_ERROR_NULL_POINTER; \
nsISupports* foundInterface;
#endif /* nsAgg_h___ */