Changeset 54991 in vbox
- Timestamp:
- Mar 27, 2015 2:56:19 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99254
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp
r54985 r54991 699 699 700 700 /* 701 * Current solution isn't optimal. 701 * Current solution isn't optimal. 702 702 * Better way is to provide API call for function 703 703 * Appliance::i_findMediumFormatFromDiskImage() … … 727 727 com::SafeArray<BSTR> extensions; 728 728 729 for (unsigned i = 0; i < mediumFormats.size(); ++i)729 for (unsigned j = 0; j < mediumFormats.size(); ++j) 730 730 { 731 731 com::SafeArray<DeviceType_T> deviceType; 732 ComPtr<IMediumFormat> mediumFormat = mediumFormats[ i];732 ComPtr<IMediumFormat> mediumFormat = mediumFormats[j]; 733 733 CHECK_ERROR(mediumFormat, COMGETTER(Name)(bstrFormatName.asOutParam())); 734 734 Utf8Str strFormatName = Utf8Str(bstrFormatName); 735 735 736 736 if (strFormatName.compare("RAW", Utf8Str::CaseInsensitive) == 0) 737 737 { … … 747 747 * extension of current file 748 748 */ 749 bool b_replace = true;749 bool fReplace = true; 750 750 751 751 const char *pszExtension = RTPathSuffix(strOverride.c_str()); … … 753 753 pszExtension++; 754 754 755 for (unsigned i = 0; i < extensions.size(); ++i)755 for (unsigned j = 0; j < extensions.size(); ++j) 756 756 { 757 Bstr bstrExt(extensions[ i]);757 Bstr bstrExt(extensions[j]); 758 758 Utf8Str strExtension(bstrExt); 759 759 if(strExtension.compare(pszExtension, Utf8Str::CaseInsensitive) == 0) 760 760 { 761 b_replace = false;761 fReplace = false; 762 762 break; 763 763 } 764 764 } 765 765 766 if ( b_replace==true)766 if (fReplace) 767 767 { 768 768 strOverride = strOverride.stripSuffix();
Note:
See TracChangeset
for help on using the changeset viewer.