Changeset 54267 in vbox
- Timestamp:
- Feb 18, 2015 3:41:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp
r54263 r54267 54 54 } OPCODE; 55 55 56 typedef std:: map<DhcpOpt_T, std::string> DhcpOptMap;57 typedef DhcpOptMap::iterator DhcpOptIterator;58 typedef DhcpOpt Map::value_type DhcpOptValuePair;56 typedef std::pair<DhcpOpt_T, std::string> DhcpOptSpec; 57 typedef std::vector<DhcpOptSpec> DhcpOpts; 58 typedef DhcpOpts::iterator DhcpOptIterator; 59 59 60 60 struct VmNameSlotKey … … 76 76 }; 77 77 78 typedef std::map<VmNameSlotKey, DhcpOpt Map> VmSlot2OptionsM;78 typedef std::map<VmNameSlotKey, DhcpOpts> VmSlot2OptionsM; 79 79 typedef VmSlot2OptionsM::iterator VmSlot2OptionsIterator; 80 80 typedef VmSlot2OptionsM::value_type VmSlot2OptionsPair; … … 136 136 int enable = -1; 137 137 138 DhcpOpt MapGlobalDhcpOptions;138 DhcpOpts GlobalDhcpOptions; 139 139 VmSlot2OptionsM VmSlot2Options; 140 140 VmConfigs VmConfigs2Delete; … … 289 289 "--slot wasn't found"); 290 290 291 DhcpOpt Map& map= fVmOptionRead ? VmSlot2Options[VmNameSlotKey(pszVmName, u8Slot)]291 DhcpOpts &opts = fVmOptionRead ? VmSlot2Options[VmNameSlotKey(pszVmName, u8Slot)] 292 292 : GlobalDhcpOptions; 293 293 std::string strVal = ValueUnion.psz; 294 map.insert(DhcpOptValuePair((DhcpOpt_T)u8OptId, strVal));294 opts.push_back(DhcpOptSpec((DhcpOpt_T)u8OptId, strVal)); 295 295 296 296 }
Note:
See TracChangeset
for help on using the changeset viewer.