Changeset 52492 in vbox
- Timestamp:
- Aug 25, 2014 11:40:49 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r52490 r52492 1205 1205 { 1206 1206 mNetworkAdapters.resize(newCount); 1207 for ( ULONGslot = oldCount; slot < mNetworkAdapters.size(); slot++)1207 for (size_t slot = oldCount; slot < mNetworkAdapters.size(); slot++) 1208 1208 { 1209 1209 unconst(mNetworkAdapters[slot]).createObject(); 1210 mNetworkAdapters[slot]->init(this, slot);1210 mNetworkAdapters[slot]->init(this, (ULONG)slot); 1211 1211 } 1212 1212 } … … 5168 5168 Bstr(tr("Deleting files")).raw(), 5169 5169 true /* fCancellable */, 5170 pTask->llFilesToDelete.size() + pTask->llMediums.size() + 1, // cOperations5170 (ULONG)(pTask->llFilesToDelete.size() + pTask->llMediums.size() + 1), // cOperations 5171 5171 BstrFmt(tr("Deleting '%s'"), pTask->llFilesToDelete.front().c_str()).raw()); 5172 5172 … … 8711 8711 8712 8712 // boot order 8713 for ( size_ti = 0; i < RT_ELEMENTS(mHWData->mBootOrder); ++i)8713 for (unsigned i = 0; i < RT_ELEMENTS(mHWData->mBootOrder); ++i) 8714 8714 { 8715 8715 settings::BootOrderMap::const_iterator it = data.mapBootOrder.find(i); … … 8775 8775 8776 8776 // network adapters 8777 uint32_t newCount = Global::getMaxNetworkAdapters(mHWData->mChipsetType);8778 uint32_t oldCount = mNetworkAdapters.size();8777 size_t newCount = Global::getMaxNetworkAdapters(mHWData->mChipsetType); 8778 size_t oldCount = mNetworkAdapters.size(); 8779 8779 if (newCount > oldCount) 8780 8780 { 8781 8781 mNetworkAdapters.resize(newCount); 8782 for ( ULONGslot = oldCount; slot < mNetworkAdapters.size(); ++slot)8782 for (size_t slot = oldCount; slot < mNetworkAdapters.size(); ++slot) 8783 8783 { 8784 8784 unconst(mNetworkAdapters[slot]).createObject(); 8785 mNetworkAdapters[slot]->init(this, slot);8785 mNetworkAdapters[slot]->init(this, (ULONG)slot); 8786 8786 } 8787 8787 } … … 10032 10032 // boot order 10033 10033 data.mapBootOrder.clear(); 10034 for ( size_ti = 0; i < RT_ELEMENTS(mHWData->mBootOrder); ++i)10034 for (unsigned i = 0; i < RT_ELEMENTS(mHWData->mBootOrder); ++i) 10035 10035 data.mapBootOrder[i] = mHWData->mBootOrder[i]; 10036 10036 … … 10081 10081 10082 10082 /* Network adapters (required) */ 10083 uint32_t uMaxNICs = RT_MIN(Global::getMaxNetworkAdapters(mHWData->mChipsetType), mNetworkAdapters.size());10083 size_t uMaxNICs = RT_MIN(Global::getMaxNetworkAdapters(mHWData->mChipsetType), mNetworkAdapters.size()); 10084 10084 data.llNetworkAdapters.clear(); 10085 10085 /* Write out only the nominal number of network adapters for this 10086 10086 * chipset type. Since Machine::commit() hasn't been called there 10087 10087 * may be extra NIC settings in the vector. */ 10088 for ( ULONGslot = 0; slot < uMaxNICs; ++slot)10088 for (size_t slot = 0; slot < uMaxNICs; ++slot) 10089 10089 { 10090 10090 settings::NetworkAdapter nic; 10091 nic.ulSlot = slot;10091 nic.ulSlot = (uint32_t)slot; 10092 10092 /* paranoia check... must not be NULL, but must not crash either. */ 10093 10093 if (mNetworkAdapters[slot])
Note:
See TracChangeset
for help on using the changeset viewer.