Changeset 29618 in vbox
- Timestamp:
- May 18, 2010 12:07:30 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Main/MediumImpl.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumImpl.cpp
r29386 r29618 96 96 setImageId(false), 97 97 setParentId(false), 98 hostDrive( FALSE),98 hostDrive(false), 99 99 implicit(false), 100 100 numCreateDiffTasks(0), … … 134 134 HDDOpenMode hddOpenMode; 135 135 136 BOOLautoReset : 1;136 bool autoReset : 1; 137 137 138 138 /** the following members are invalid after changing UUID on open */ 139 BOOLsetImageId : 1;140 BOOLsetParentId : 1;139 bool setImageId : 1; 140 bool setParentId : 1; 141 141 const Guid imageId; 142 142 const Guid parentId; 143 143 144 BOOLhostDrive : 1;144 bool hostDrive : 1; 145 145 146 146 typedef std::map <Bstr, Bstr> PropertyMap; … … 747 747 748 748 /* cannot be a host drive */ 749 m->hostDrive = FALSE;749 m->hostDrive = false; 750 750 751 751 /* No storage unit is created yet, no need to queryInfo() */ … … 835 835 836 836 /* cannot be a host drive */ 837 m->hostDrive = FALSE;837 m->hostDrive = false; 838 838 839 839 /* remember the open mode (defaults to ReadWrite) */ … … 847 847 848 848 /* save the new uuid values, will be used by queryInfo() */ 849 m->setImageId = aSetImageId;849 m->setImageId = !!aSetImageId; 850 850 unconst(m->imageId) = aImageId; 851 m->setParentId = aSetParentId;851 m->setParentId = !!aSetParentId; 852 852 unconst(m->parentId) = aParentId; 853 853 … … 928 928 929 929 /* assume not a host drive */ 930 m->hostDrive = FALSE;930 m->hostDrive = false; 931 931 932 932 /* optional */ … … 1548 1548 if (m->pParent) 1549 1549 *aAutoReset = FALSE; 1550 1551 *aAutoReset = m->autoReset;1550 else 1551 *aAutoReset = m->autoReset; 1552 1552 1553 1553 return S_OK; … … 1567 1567 m->strLocationFull.raw()); 1568 1568 1569 if (m->autoReset != aAutoReset)1570 { 1571 m->autoReset = aAutoReset;1569 if (m->autoReset != !!aAutoReset) 1570 { 1571 m->autoReset = !!aAutoReset; 1572 1572 1573 1573 return m->pVirtualBox->saveSettings(); … … 3012 3012 /* optional, only for diffs, default is false */ 3013 3013 if (m->pParent) 3014 data.fAutoReset = !!m->autoReset;3014 data.fAutoReset = m->autoReset; 3015 3015 else 3016 3016 data.fAutoReset = false; … … 5401 5401 pTarget->m->state = MediumState_NotCreated; 5402 5402 5403 pTarget->m->autoReset = FALSE;5403 pTarget->m->autoReset = false; 5404 5404 5405 5405 /* reset UUID to prevent it from being reused next time */
Note:
See TracChangeset
for help on using the changeset viewer.

