VirtualBox

Changeset 106891 in vbox


Ignore:
Timestamp:
Nov 8, 2024 3:30:44 PM (2 months ago)
Author:
vboxsync
Message:

Added a copy constructor to avoid the compiler warning C5267 on Windows.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ObjectsTracker.h

    r106691 r106891  
    8686                      uint64_t aIdleTime,
    8787                      IUnknown* aPtr);
     88
     89    TrackedObjectData(const TrackedObjectData & that);
    8890
    8991    ~TrackedObjectData();
  • trunk/src/VBox/Main/src-all/ObjectsTracker.cpp

    r106882 r106891  
    6969    m_State = TrackedObjectData::Valid;
    7070    Log2(("%s constructor \n", __FUNCTION__));
     71}
     72
     73TrackedObjectData::TrackedObjectData(const TrackedObjectData & that)
     74{
     75    LogFlowFuncEnter();
     76    if (this != &that)
     77    {
     78        m_objId = that.m_objId;
     79        m_classIID = that.m_classIID;
     80        m_componentName = that.m_componentName;
     81        m_lifeTime = that.m_lifeTime;
     82        m_idleTime = that.m_idleTime;
     83        m_pIface = that.m_pIface;
     84        m_creationTime = that.m_creationTime;
     85        m_lastAccessTime = that.m_lastAccessTime;
     86        m_idleTimeStart = that.m_idleTimeStart;
     87        m_fIdleTimeStart = that.m_fIdleTimeStart;
     88        m_State = that.m_State;
     89    }
    7190}
    7291
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