VirtualBox

Changeset 42885 in vbox for trunk/include


Ignore:
Timestamp:
Aug 20, 2012 4:40:20 PM (12 years ago)
Author:
vboxsync
Message:

include/VBox/com/ptr.h: make the code easier to read, and those few chars more won't slow down the compiler much

File:
1 edited

Legend:

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

    r32844 r42885  
    383383    void copyFrom(T* p)
    384384    {
    385         if ((m_p = p))
     385        m_p = p;
     386        if (m_p)
    386387            m_p->AddRef();
    387388    }
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