Changeset 24989 in vbox for trunk/src/VBox/Main/ApplianceImpl.cpp
- Timestamp:
- Nov 26, 2009 11:31:46 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r24872 r24989 1106 1106 1107 1107 const OVFReader reader = *m->pReader; 1108 1109 1108 // this is safe to access because this thread only gets started 1109 // if pReader != NULL 1110 1110 1111 1111 /* If an manifest file exists, verify the content. Therefor we need all … … 1167 1167 vrc); 1168 1168 /* Cleanup */ 1169 for (size_t i=1; i < filesList.size(); ++i) 1170 RTStrFree(pTestList[i].pszTestDigest); 1169 for (size_t j = 1; 1170 j < filesList.size(); 1171 ++j) 1172 RTStrFree(pTestList[j].pszTestDigest); 1171 1173 RTMemFree(pTestList); 1172 1174 if (FAILED(rc)) … … 1373 1375 /* We search for the first host network interface which 1374 1376 * is usable for bridged networking */ 1375 for (size_t i=0; i < nwInterfaces.size(); ++i) 1377 for (size_t j = 0; 1378 j < nwInterfaces.size(); 1379 ++j) 1376 1380 { 1377 1381 HostNetworkInterfaceType_T itype; 1378 rc = nwInterfaces[ i]->COMGETTER(InterfaceType)(&itype);1382 rc = nwInterfaces[j]->COMGETTER(InterfaceType)(&itype); 1379 1383 if (FAILED(rc)) throw rc; 1380 1384 if (itype == HostNetworkInterfaceType_Bridged) 1381 1385 { 1382 1386 Bstr name; 1383 rc = nwInterfaces[ i]->COMGETTER(Name)(name.asOutParam());1387 rc = nwInterfaces[j]->COMGETTER(Name)(name.asOutParam()); 1384 1388 if (FAILED(rc)) throw rc; 1385 1389 /* Set the interface name to attach to */ … … 1404 1408 /* We search for the first host network interface which 1405 1409 * is usable for host only networking */ 1406 for (size_t i=0; i < nwInterfaces.size(); ++i) 1410 for (size_t j = 0; 1411 j < nwInterfaces.size(); 1412 ++j) 1407 1413 { 1408 1414 HostNetworkInterfaceType_T itype; 1409 rc = nwInterfaces[ i]->COMGETTER(InterfaceType)(&itype);1415 rc = nwInterfaces[j]->COMGETTER(InterfaceType)(&itype); 1410 1416 if (FAILED(rc)) throw rc; 1411 1417 if (itype == HostNetworkInterfaceType_HostOnly) 1412 1418 { 1413 1419 Bstr name; 1414 rc = nwInterfaces[ i]->COMGETTER(Name)(name.asOutParam());1420 rc = nwInterfaces[j]->COMGETTER(Name)(name.asOutParam()); 1415 1421 if (FAILED(rc)) throw rc; 1416 1422 /* Set the interface name to attach to */ … … 1567 1573 1568 1574 // CD-ROMs next 1569 for (std::list<VirtualSystemDescriptionEntry*>::const_iterator it = vsdeCDROM.begin();1570 it != vsdeCDROM.end();1571 ++it)1575 for (std::list<VirtualSystemDescriptionEntry*>::const_iterator jt = vsdeCDROM.begin(); 1576 jt != vsdeCDROM.end(); 1577 ++jt) 1572 1578 { 1573 1579 // for now always attach to secondary master on IDE controller; 1574 1580 // there seems to be no useful information in OVF where else to 1575 // attach it (@todo test with latest versions of OVF software)1581 // attach jt (@todo test with latest versions of OVF software) 1576 1582 1577 1583 // find the IDE controller 1578 1584 const HardDiskController *pController = NULL; 1579 for (ControllersMap::const_iterator it = vsysThis.mapControllers.begin();1580 it != vsysThis.mapControllers.end();1581 ++ it)1585 for (ControllersMap::const_iterator kt = vsysThis.mapControllers.begin(); 1586 kt != vsysThis.mapControllers.end(); 1587 ++kt) 1582 1588 { 1583 if ( it->second.system == HardDiskController::IDE)1589 if (kt->second.system == HardDiskController::IDE) 1584 1590 { 1585 pController = & it->second;1591 pController = &kt->second; 1586 1592 } 1587 1593 } … … 4388 4394 CheckComRCReturnRC(autoCaller.rc()); 4389 4395 4390 AutoReadLock alock (this);4396 AutoReadLock alock1(this); 4391 4397 4392 4398 ComObjPtr<VirtualSystemDescription> pNewDesc; … … 4394 4400 try 4395 4401 { 4396 Bstr bstrName ;4402 Bstr bstrName1; 4397 4403 Bstr bstrDescription; 4398 4404 Bstr bstrGuestOSType; … … 4407 4413 4408 4414 // get name 4409 bstrName = mUserData->mName;4415 bstrName1 = mUserData->mName; 4410 4416 // get description 4411 4417 bstrDescription = mUserData->mDescription; … … 4454 4460 4455 4461 /* VM name */ 4456 Utf8Str strVMName(bstrName );4462 Utf8Str strVMName(bstrName1); 4457 4463 pNewDesc->addEntry(VirtualSystemDescriptionType_Name, 4458 4464 "",
Note:
See TracChangeset
for help on using the changeset viewer.