VirtualBox

Changeset 24989 in vbox for trunk/src/VBox/Main/generic


Ignore:
Timestamp:
Nov 26, 2009 11:31:46 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55293
Message:

Main: enable -Wshadow gcc option to warn about shadowed variables and fix all resulting warnings; in particular, rename some stack and member variables and rename getter methods like id() to getId()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/generic/NetIf-generic.cpp

    r22875 r24989  
    139139
    140140    ComPtr<IHost> host;
    141     HRESULT rc = pVBox->COMGETTER(Host)(host.asOutParam());
    142     if(SUCCEEDED(rc))
    143     {
    144         rc = progress->init (pVBox, host,
     141    HRESULT hrc = pVBox->COMGETTER(Host)(host.asOutParam());
     142    if (SUCCEEDED(hrc))
     143    {
     144        hrc = progress->init(pVBox, host,
    145145                             Bstr ("Creating host only network interface"),
    146146                             FALSE /* aCancelable */);
    147         if(SUCCEEDED(rc))
     147        if (SUCCEEDED(hrc))
    148148        {
    149             CheckComRCReturnRC(rc);
    150149            progress.queryInterfaceTo(aProgress);
    151150
     
    208207    }
    209208
    210     return rc;
     209    return hrc;
    211210
    212211#else
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