VirtualBox

Changeset 25195 in vbox


Ignore:
Timestamp:
Dec 4, 2009 4:06:08 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55675
Message:

Main: windows build fix

File:
1 edited

Legend:

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

    r25194 r25195  
    4747typedef std::list< ComObjPtr<USBDeviceFilter> > DeviceFilterList;
    4848
     49struct BackupableUSBData
     50{
     51    BackupableUSBData()
     52        : fEnabled(false),
     53          fEnabledEHCI(false)
     54    { }
     55
     56    bool operator==(const BackupableUSBData &that) const
     57    {
     58        return this == &that || (fEnabled == that.fEnabled && fEnabledEHCI == that.fEnabledEHCI);
     59    }
     60
     61    BOOL fEnabled;
     62    BOOL fEnabledEHCI;
     63};
     64
    4965struct USBController::Data
    5066{
    51     struct BackupableData
    52     {
    53         /* Constructor. */
    54         BackupableData()
    55             : fEnabled(false),
    56               fEnabledEHCI(false)
    57         { }
    58 
    59         bool operator==(const BackupableData &that) const
    60         {
    61             return this == &that || (fEnabled == that.fEnabled && fEnabledEHCI == that.fEnabledEHCI);
    62         }
    63 
    64         bool fEnabled;
    65         bool fEnabledEHCI;
    66     };
     67    Data() {};
     68    ~Data() {};
    6769
    6870    /** Parent object. */
     
    7173    const ComObjPtr<USBController> pPeer;
    7274
    73     Backupable<BackupableData>      bd;
     75    Backupable<BackupableUSBData>  bd;
    7476#ifdef VBOX_WITH_USB
    7577    // the following fields need special backup/rollback/commit handling,
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