Changeset 77039 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 30, 2019 11:18:06 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128482
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r76818 r77039 2245 2245 * Do the removal. 2246 2246 */ 2247 bool fModified = false;2247 bool fModified = mHWData.isBackedUp(); 2248 2248 for (settings::CpuIdLeafsList::iterator it = mHWData->mCpuIdLeafList.begin(); it != mHWData->mCpuIdLeafList.end(); ) 2249 2249 { … … 2258 2258 i_setModified(IsModified_MachineData); 2259 2259 mHWData.backup(); 2260 // Start from the beginning, since mHWData.backup() creates 2261 // a new list, causing iterator mixup. This makes sure that 2262 // the settings are not unnecessarily marked as modified, 2263 // at the price of extra list walking. 2264 it = mHWData->mCpuIdLeafList.begin(); 2260 2265 } 2261 it = mHWData->mCpuIdLeafList.erase(it); 2266 else 2267 it = mHWData->mCpuIdLeafList.erase(it); 2262 2268 } 2263 2269 else
Note:
See TracChangeset
for help on using the changeset viewer.