Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

template<class I2>
bool ComPtrEquals ( IUnknown *  aThis,
I2 *  aThat 
) [inline]

Specialization for <IUnknown, Any>

Definition at line 129 of file ptr.h.

References NULL.

{
    IUnknown *thatUnk = NULL;
    if (aThat)
        aThat->QueryInterface (COM_IIDOF (IUnknown), (void **) &thatUnk);
    bool equal = aThis == thatUnk;
    if (thatUnk)
        thatUnk->Release();
    return equal;
}


Generated by  Doxygen 1.6.0   Back to index