VirtualBox

Changeset 25013 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Nov 26, 2009 3:22:46 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55325
Message:

VBoxSDL: -Wshadow warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r24493 r25013  
    858858    HRESULT rc;
    859859    int vrc;
    860     Guid uuid;
     860    Guid uuidVM;
    861861    char *vmName = NULL;
    862862    DeviceType_T bootDevice = DeviceType_Null;
     
    10451045            }
    10461046            // first check if a UUID was supplied
    1047             if (RT_FAILURE(RTUuidFromStr(uuid.ptr(), argv[curArg])))
     1047            if (RT_FAILURE(RTUuidFromStr(uuidVM.ptr(), argv[curArg])))
    10481048            {
    10491049                LogFlow(("invalid UUID format, assuming it's a VM name\n"));
     
    14561456     * Do we have a name but no UUID?
    14571457     */
    1458     if (vmName && uuid.isEmpty())
     1458    if (vmName && uuidVM.isEmpty())
    14591459    {
    14601460        ComPtr<IMachine> aMachine;
     
    14651465            Bstr id;
    14661466            aMachine->COMGETTER(Id)(id.asOutParam());
    1467             uuid = Guid(id);
     1467            uuidVM = Guid(id);
    14681468        }
    14691469        else
     
    14731473        }
    14741474    }
    1475     else if (uuid.isEmpty())
     1475    else if (uuidVM.isEmpty())
    14761476    {
    14771477        RTPrintf("Error: no machine specified!\n");
     
    14831483    AssertReleaseRC(vrc);
    14841484
    1485     rc = virtualBox->OpenSession(session, uuid.toUtf16());
     1485    rc = virtualBox->OpenSession(session, uuidVM.toUtf16());
    14861486    if (FAILED(rc))
    14871487    {
     
    15441544             * Go and attach it!
    15451545             */
    1546             Bstr uuid;
     1546            Bstr uuidHD;
    15471547            Bstr storageCtlName;
    1548             hardDisk->COMGETTER(Id)(uuid.asOutParam());
     1548            hardDisk->COMGETTER(Id)(uuidHD.asOutParam());
    15491549
    15501550            /* get the first IDE controller to attach the harddisk to
     
    15811581            }
    15821582
    1583             gMachine->AttachDevice(storageCtlName, 0, 0, DeviceType_HardDisk, uuid);
     1583            gMachine->AttachDevice(storageCtlName, 0, 0, DeviceType_HardDisk, uuidHD);
    15841584            /// @todo why is this attachment saved?
    15851585        }
     
    24062406                        {
    24072407                            /* potential host key combination, try execute it */
    2408                             int rc = HandleHostKey(&event.key);
    2409                             if (rc == VINF_SUCCESS)
     2408                            int irc = HandleHostKey(&event.key);
     2409                            if (irc == VINF_SUCCESS)
    24102410                            {
    24112411                                enmHKeyState = HKEYSTATE_USED;
    24122412                                break;
    24132413                            }
    2414                             if (RT_SUCCESS(rc))
     2414                            if (RT_SUCCESS(irc))
    24152415                                goto leave;
    24162416                        }
     
    24482448                        if (event.type == SDL_KEYDOWN)
    24492449                        {
    2450                             int rc = HandleHostKey(&event.key);
    2451                             if (RT_SUCCESS(rc) && rc != VINF_SUCCESS)
     2450                            int irc = HandleHostKey(&event.key);
     2451                            if (RT_SUCCESS(irc) && irc != VINF_SUCCESS)
    24522452                                goto leave;
    24532453                        }
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