VirtualBox

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


Ignore:
Timestamp:
Jul 30, 2009 12:42:08 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50525
Message:

Main: coding style: have Main obey the standard VirtualBox coding style rules (no functional changes)

File:
1 edited

Legend:

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

    r19924 r21878  
    135135#if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN)
    136136    /* create a progress object */
    137     ComObjPtr <Progress> progress;
     137    ComObjPtr<Progress> progress;
    138138    progress.createObject();
    139139
     
    147147        if(SUCCEEDED(rc))
    148148        {
    149             CheckComRCReturnRC (rc);
    150             progress.queryInterfaceTo (aProgress);
     149            CheckComRCReturnRC(rc);
     150            progress.queryInterfaceTo(aProgress);
    151151
    152152            char szAdpCtl[RTPATH_MAX];
     
    188188                            Bstr IfName(szBuf);
    189189                            /* create a new uninitialized host interface object */
    190                             ComObjPtr <HostNetworkInterface> iface;
     190                            ComObjPtr<HostNetworkInterface> iface;
    191191                            iface.createObject();
    192192                            iface->init(IfName, HostNetworkInterfaceType_HostOnly, pInfo);
    193                             iface.queryInterfaceTo (aHostNetworkInterface);
     193                            iface.queryInterfaceTo(aHostNetworkInterface);
    194194                        }
    195195                        RTMemFree(pInfo);
     
    218218#if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN)
    219219    /* create a progress object */
    220     ComObjPtr <Progress> progress;
     220    ComObjPtr<Progress> progress;
    221221    progress.createObject();
    222222    ComPtr<IHost> host;
     
    226226    {
    227227        Bstr ifname;
    228         ComPtr <IHostNetworkInterface> iface;
     228        ComPtr<IHostNetworkInterface> iface;
    229229        if (FAILED (host->FindHostNetworkInterfaceById (Guid(aId).toUtf16(), iface.asOutParam())))
    230230            return VERR_INVALID_PARAMETER;
     
    238238        if(SUCCEEDED(rc))
    239239        {
    240             CheckComRCReturnRC (rc);
    241             progress.queryInterfaceTo (aProgress);
    242             iface.queryInterfaceTo (aHostNetworkInterface);
     240            CheckComRCReturnRC(rc);
     241            progress.queryInterfaceTo(aProgress);
     242            iface.queryInterfaceTo(aHostNetworkInterface);
    243243            rc = NetIfAdpCtl(Utf8Str(ifname), "remove", NULL, NULL);
    244244            if (RT_FAILURE(rc))
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