nsFindComponent::QueryInterface( REFNSIID anIID, void **anInstancePtr ) {
nsFindDialog::QueryInterface( REFNSIID anIID, void **anInstancePtr) {
nsFindComponent::QueryInterface( REFNSIID anIID, void **anInstancePtr ) {    nsresult rv = NS_OK;    // Check for place to return result.    if ( !anInstancePtr ) {        rv = NS_ERROR_NULL_POINTER;    } else {        // Initialize result.        *anInstancePtr = 0;        // Check for IIDs we support and cast this appropriately.        if ( anIID.Equals( nsIFindComponent::GetIID() ) ) {            *anInstancePtr = (void*) this;            NS_ADDREF_THIS();        } else if ( anIID.Equals( nsIAppShellComponent::GetIID() ) ) {            *anInstancePtr = (void*) ( (nsIAppShellComponent*)this );            NS_ADDREF_THIS();        } else if ( anIID.Equals( nsISupports::GetIID() ) ) {            *anInstancePtr = (void*) ( (nsISupports*)this );            NS_ADDREF_THIS();        } else {            // Not an interface we support.            rv = NS_NOINTERFACE;        }    }    return rv;}