Added NS_IMPL_AGGREGATED_QUERY_HEAD macro.

This commit is contained in:
warren%netscape.com 2000-01-10 23:14:32 +00:00
Родитель 60f00a0390
Коммит 4f8a16eb71
1 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -32,7 +32,7 @@
#define NS_DECL_AGGREGATED \ #define NS_DECL_AGGREGATED \
NS_DECL_ISUPPORTS \ NS_DECL_ISUPPORTS \
\ \
public: \ public: \
\ \
/* You must implement this operation instead of the nsISupports */ \ /* You must implement this operation instead of the nsISupports */ \
/* methods if you inherit from nsAggregated. */ \ /* methods if you inherit from nsAggregated. */ \
@ -123,4 +123,14 @@ _class::Internal::Release(void) \
return agg->mRefCnt; \ 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___ */ #endif /* nsAgg_h___ */