if ( aContext ) {  Context *context = (Context*)aContext; printf( "nsFindComponent::FindNext\n\tkey=%s\n\tignoreCase=%s\tsearchBackward=%s\n", (const char *)nsAutoCString( context->mSearchString ), (const char *)nsAutoCString( context->mIgnoreCase ), (const char *)nsAutoCString( context->mSearchBackward ) );
if (!aContext) return NS_ERROR_NULL_POINTER;   Context *context = (Context*)aContext; #ifdef DEBUG_FIND printf( "nsFindComponent::FindNext\n\tkey=%s\n\tcaseSensitive=%d\tsearchBackward=%d\n", (const char *)nsAutoCString( context->mSearchString ), context->mCaseSensitive, context->mSearchBackwards); #endif context->DoFind(aDidFind);
nsFindComponent::FindNext( nsISupports *aContext ) {    nsresult rv = NS_OK;    if ( aContext ) {        // For now, just record request to console.        Context *context = (Context*)aContext;        printf( "nsFindComponent::FindNext\n\tkey=%s\n\tignoreCase=%s\tsearchBackward=%s\n",                (const char *)nsAutoCString( context->mSearchString ),                (const char *)nsAutoCString( context->mIgnoreCase ),                (const char *)nsAutoCString( context->mSearchBackward ) );        // Record this for out-of-the-blue FindNext calls.        mLastSearchString   = context->mSearchString;        mLastIgnoreCase     = context->mIgnoreCase;        mLastSearchBackward = context->mSearchBackward;    } else {        rv = NS_ERROR_NULL_POINTER;    }    return rv;}