зеркало из https://github.com/mozilla/pjs.git
QueryInterface implementations shouldn't null-check out parameter. b=215352 r=dougt
This commit is contained in:
Родитель
077a1507e3
Коммит
cb8ec8781a
|
@ -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) \
|
||||
|
|
Загрузка…
Ссылка в новой задаче