QueryInterface implementations shouldn't null-check out parameter. b=215352 r=dougt

This commit is contained in:
dbaron%dbaron.org 2003-11-11 21:51:02 +00:00
Родитель 077a1507e3
Коммит cb8ec8781a
1 изменённых файлов: 0 добавлений и 2 удалений

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

@ -240,8 +240,6 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
NS_ASSERTION(aInstancePtr, \
"QueryInterface requires a non-NULL destination!"); \
if ( !aInstancePtr ) \
return NS_ERROR_NULL_POINTER; \
nsISupports* foundInterface;
#define NS_IMPL_QUERY_BODY(_interface) \