VirtualBox

Ignore:
Timestamp:
Dec 4, 2009 3:59:34 PM (15 years ago)
Author:
vboxsync
Message:

Main: stop USBController from being a VirtualBoxBaseWithChildren; make its instance data private

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/SnapshotImpl.cpp

    r25152 r25194  
    884884
    885885    unconst(mUSBController).createObject();
    886     mUSBController->initCopy (this, mPeer->mUSBController);
    887 
    888     for (ULONG slot = 0; slot < RT_ELEMENTS (mNetworkAdapters); slot ++)
    889     {
    890         unconst(mNetworkAdapters [slot]).createObject();
    891         mNetworkAdapters [slot]->initCopy (this, mPeer->mNetworkAdapters [slot]);
    892     }
    893 
    894     for (ULONG slot = 0; slot < RT_ELEMENTS (mSerialPorts); slot ++)
     886    mUSBController->init(this, mPeer->mUSBController);
     887
     888    for (ULONG slot = 0; slot < RT_ELEMENTS (mNetworkAdapters); slot++)
     889    {
     890        unconst(mNetworkAdapters[slot]).createObject();
     891        mNetworkAdapters[slot]->initCopy (this, mPeer->mNetworkAdapters [slot]);
     892    }
     893
     894    for (ULONG slot = 0; slot < RT_ELEMENTS (mSerialPorts); slot++)
    895895    {
    896896        unconst(mSerialPorts [slot]).createObject();
    897         mSerialPorts [slot]->initCopy (this, mPeer->mSerialPorts [slot]);
    898     }
    899 
    900     for (ULONG slot = 0; slot < RT_ELEMENTS (mParallelPorts); slot ++)
    901     {
    902         unconst(mParallelPorts [slot]).createObject();
    903         mParallelPorts [slot]->initCopy (this, mPeer->mParallelPorts [slot]);
     897        mSerialPorts[slot]->initCopy (this, mPeer->mSerialPorts[slot]);
     898    }
     899
     900    for (ULONG slot = 0; slot < RT_ELEMENTS (mParallelPorts); slot++)
     901    {
     902        unconst(mParallelPorts[slot]).createObject();
     903        mParallelPorts[slot]->initCopy (this, mPeer->mParallelPorts[slot]);
    904904    }
    905905
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