Lines Matching defs:QueryInterface
69 NS_IMETHOD QueryInterface( const nsIID&, void** );
177 IFoo::QueryInterface( const nsIID& aIID, void** aResult )
179 printf("IFoo@%p::QueryInterface()\n", STATIC_CAST(void*, this));
251 NS_IMETHOD QueryInterface( const nsIID&, void** );
265 IBar::QueryInterface( const nsID& aIID, void** aResult )
267 printf("IBar@%p::QueryInterface()\n", STATIC_CAST(void*, this));
346 if ( NS_SUCCEEDED( result = barP->QueryInterface(NS_GET_IID(IFoo), REINTERPRET_CAST(void**, &fooP)) ) )
384 if ( NS_SUCCEEDED( result = barP->QueryInterface(NS_GET_IID(IFoo), REINTERPRET_CAST(void**, &fooP)) ) )
598 printf("### Test 21: is |QueryInterface| called on assigning in a raw pointer?\n");
610 printf("### Test 22: is |QueryInterface| _not_ called when assigning in a smart-pointer of the same type?\n");
619 printf("### Test 23: is |QueryInterface| called when assigning in a smart-pointer of a different type?\n");