- Timestamp:
- May 12, 2015 6:37:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r55833 r55835 9068 9068 9069 9069 #ifdef VBOX_WITH_GUEST_PROPS 9070 /* Guest properties (optional) */ 9071 9070 9072 /* Only load transient guest properties for configs which have saved 9071 9073 * state, because there shouldn't be any for powered off VMs. The same … … 9074 9076 * Note: can't rely on the machine state, as it isn't set yet. */ 9075 9077 bool fSkipTransientGuestProperties = mSSData->strStateFilePath.isEmpty(); 9076 /* Guest properties (optional) */ 9077 for (settings::GuestPropertiesList::const_iterator it = data.llGuestProperties.begin(); 9078 it != data.llGuestProperties.end(); 9079 ++it) 9078 /* apologies for the hacky unconst() usage, but this needs hacking 9079 * actually inconsistent settings into consistency, otherwise there 9080 * will be some corner cases where the inconsistency survives 9081 * surprisingly long without getting fixed, especially for snapshots 9082 * as there are no config changes. */ 9083 settings::GuestPropertiesList &llGuestProperties = unconst(data.llGuestProperties); 9084 for (settings::GuestPropertiesList::iterator it = llGuestProperties.begin(); 9085 it != llGuestProperties.end(); 9086 /*nothing*/) 9080 9087 { 9081 9088 const settings::GuestProperty &prop = *it; … … 9085 9092 && ( fFlags & guestProp::TRANSIENT 9086 9093 || fFlags & guestProp::TRANSRESET)) 9094 { 9095 it = llGuestProperties.erase(it); 9087 9096 continue; 9097 } 9088 9098 HWData::GuestProperty property = { prop.strValue, (LONG64) prop.timestamp, fFlags }; 9089 9099 mHWData->mGuestProperties[prop.strName] = property; 9100 ++it; 9090 9101 } 9091 9102
Note:
See TracChangeset
for help on using the changeset viewer.