VirtualBox

Changeset 54991 in vbox


Ignore:
Timestamp:
Mar 27, 2015 2:56:19 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99254
Message:

VBoxManageAppliance: don't shadow variable names; coding style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp

    r54985 r54991  
    699699
    700700                                    /*
    701                                      * Current solution isn't optimal. 
     701                                     * Current solution isn't optimal.
    702702                                     * Better way is to provide API call for function
    703703                                     * Appliance::i_findMediumFormatFromDiskImage()
     
    727727                                        com::SafeArray<BSTR> extensions;
    728728
    729                                         for (unsigned i = 0; i < mediumFormats.size(); ++i)
     729                                        for (unsigned j = 0; j < mediumFormats.size(); ++j)
    730730                                        {
    731731                                            com::SafeArray<DeviceType_T> deviceType;
    732                                             ComPtr<IMediumFormat> mediumFormat = mediumFormats[i];
     732                                            ComPtr<IMediumFormat> mediumFormat = mediumFormats[j];
    733733                                            CHECK_ERROR(mediumFormat, COMGETTER(Name)(bstrFormatName.asOutParam()));
    734734                                            Utf8Str strFormatName = Utf8Str(bstrFormatName);
    735                                            
     735
    736736                                            if (strFormatName.compare("RAW", Utf8Str::CaseInsensitive) == 0)
    737737                                            {
     
    747747                                         * extension of current file
    748748                                         */
    749                                         bool b_replace = true;
     749                                        bool fReplace = true;
    750750
    751751                                        const char *pszExtension = RTPathSuffix(strOverride.c_str());
     
    753753                                            pszExtension++;
    754754
    755                                         for (unsigned i = 0; i < extensions.size(); ++i)
     755                                        for (unsigned j = 0; j < extensions.size(); ++j)
    756756                                        {
    757                                             Bstr bstrExt(extensions[i]);
     757                                            Bstr bstrExt(extensions[j]);
    758758                                            Utf8Str strExtension(bstrExt);
    759759                                            if(strExtension.compare(pszExtension, Utf8Str::CaseInsensitive) == 0)
    760760                                            {
    761                                                 b_replace = false;
     761                                                fReplace = false;
    762762                                                break;
    763763                                            }
    764764                                        }
    765765
    766                                         if (b_replace==true)
     766                                        if (fReplace)
    767767                                        {
    768768                                            strOverride = strOverride.stripSuffix();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette