VirtualBox

Changeset 55603 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
May 2, 2015 6:30:47 PM (10 years ago)
Author:
vboxsync
Message:

com/ptr.h: Added ComPtr::isNotNull().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/ptr.h

    r47369 r55603  
    228228        return (m_p == NULL);
    229229    }
     230
     231    /**
     232     * Returns true if the pointer is not NULL.
     233     */
     234    bool isNotNull() const
     235    {
     236        return (m_p != NULL);
     237    }
     238
    230239
    231240    bool operator<(T* p) const
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette