VirtualBox

Changeset 54378 in vbox for trunk/src


Ignore:
Timestamp:
Feb 23, 2015 10:54:48 AM (10 years ago)
Author:
vboxsync
Message:

VBoxManage: nits

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

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

    r53062 r54378  
    346346            /* Get the number of network adapters */
    347347            ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine);
    348 
    349348            unsigned n = parseNum(&a->argv[1][12], NetworkAdapterCount, "NIC");
    350349            if (!n)
     
    430429            /* Get the number of network adapters */
    431430            ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine);
    432 
    433431            unsigned n = parseNum(&a->argv[1][8], NetworkAdapterCount, "NIC");
    434432            if (!n)
     
    477475            /* Get the number of network adapters */
    478476            ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine);
    479             ComPtr<INATEngine> engine;
    480477            unsigned n = parseNum(&a->argv[1][5], NetworkAdapterCount, "NIC");
    481478            if (!n)
     
    499496                break;
    500497            }
     498            ComPtr<INATEngine> engine;
    501499            CHECK_ERROR(adapter, COMGETTER(NATEngine)(engine.asOutParam()));
    502500            if (!engine)
     
    570568        {
    571569            /* Get the number of network adapters */
    572             ULONG NetworkAdapterCount = getMaxNics(a->virtualBox,sessionMachine) ;
     570            ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine);
    573571            unsigned n = parseNum(&a->argv[1][11], NetworkAdapterCount, "NIC");
    574572            if (!n)
     
    628626        {
    629627            /* Get the number of network adapters */
    630             ULONG NetworkAdapterCount = getMaxNics(a->virtualBox,sessionMachine) ;
     628            ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine);
    631629            unsigned n = parseNum(&a->argv[1][10], NetworkAdapterCount, "NIC");
    632630            if (!n)
     
    675673        {
    676674            /* Get the number of network adapters */
    677             ULONG NetworkAdapterCount = getMaxNics(a->virtualBox,sessionMachine) ;
     675            ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine);
    678676            unsigned n = parseNum(&a->argv[1][3], NetworkAdapterCount, "NIC");
    679677            if (!n)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r52312 r54378  
    680680                uint32_t aValue[4];
    681681
    682                 for (unsigned i = 0 ; i < 4 ; i++)
     682                for (unsigned i = 0; i < 4; i++)
    683683                {
    684684                    int vrc = RTGetOptFetchValue(&GetOptState, &ValueUnion, RTGETOPT_REQ_UINT32 | RTGETOPT_FLAG_HEX);
Note: See TracChangeset for help on using the changeset viewer.

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