VirtualBox

Ignore:
Timestamp:
Jun 26, 2007 3:50:41 PM (17 years ago)
Author:
vboxsync
Message:

Main: More Machine children use the AutoStateDependency template.

File:
1 edited

Legend:

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

    r3007 r3302  
    171171    CheckComRCReturnRC (autoCaller.rc());
    172172
    173     AutoLock alock (this);
    174 
    175     CHECK_MACHINE_MUTABILITY (mParent);
     173    /* the machine needs to be mutable */
     174    Machine::AutoMutableStateDependency adep (mParent);
     175    CheckComRCReturnRC (adep.rc());
     176
     177    AutoLock alock (this);
    176178
    177179    mData.backup();
     
    201203    CheckComRCReturnRC (autoCaller.rc());
    202204
    203     AutoLock alock (this);
    204 
    205     CHECK_MACHINE_MUTABILITY (mParent);
     205    /* the machine needs to be mutable */
     206    Machine::AutoMutableStateDependency adep (mParent);
     207    CheckComRCReturnRC (adep.rc());
     208
     209    AutoLock alock (this);
    206210
    207211    mData.backup();
     
    231235    CheckComRCReturnRC (autoCaller.rc());
    232236
    233     AutoLock alock (this);
    234 
    235     CHECK_MACHINE_MUTABILITY (mParent);
     237    /* the machine needs to be mutable */
     238    Machine::AutoMutableStateDependency adep (mParent);
     239    CheckComRCReturnRC (adep.rc());
     240
     241    AutoLock alock (this);
    236242
    237243    mData.backup();
     
    264270    CheckComRCReturnRC (autoCaller.rc());
    265271
    266     AutoLock alock (this);
    267 
    268     CHECK_MACHINE_MUTABILITY (mParent);
     272    /* the machine needs to be mutable */
     273    Machine::AutoMutableStateDependency adep (mParent);
     274    CheckComRCReturnRC (adep.rc());
     275
     276    AutoLock alock (this);
    269277
    270278    mData.backup();
     
    293301    CheckComRCReturnRC (autoCaller.rc());
    294302
    295     AutoLock alock (this);
    296 
    297     CHECK_MACHINE_MUTABILITY (mParent);
     303    /* the machine needs to be mutable */
     304    Machine::AutoMutableStateDependency adep (mParent);
     305    CheckComRCReturnRC (adep.rc());
     306
     307    AutoLock alock (this);
    298308
    299309    mData.backup();
     
    323333    CheckComRCReturnRC (autoCaller.rc());
    324334
    325     AutoLock alock (this);
    326 
    327     CHECK_MACHINE_MUTABILITY (mParent);
     335    /* the machine needs to be mutable */
     336    Machine::AutoMutableStateDependency adep (mParent);
     337    CheckComRCReturnRC (adep.rc());
     338
     339    AutoLock alock (this);
    328340
    329341    mData.backup();
     
    353365    CheckComRCReturnRC (autoCaller.rc());
    354366
    355     AutoLock alock (this);
    356 
    357     CHECK_MACHINE_MUTABILITY (mParent);
     367    /* the machine needs to be mutable */
     368    Machine::AutoMutableStateDependency adep (mParent);
     369    CheckComRCReturnRC (adep.rc());
     370
     371    AutoLock alock (this);
    358372
    359373    mData.backup();
     
    383397    CheckComRCReturnRC (autoCaller.rc());
    384398
    385     AutoLock alock (this);
    386 
    387     CHECK_MACHINE_MUTABILITY (mParent);
     399    /* the machine needs to be mutable */
     400    Machine::AutoMutableStateDependency adep (mParent);
     401    CheckComRCReturnRC (adep.rc());
     402
     403    AutoLock alock (this);
    388404
    389405    mData.backup();
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