VirtualBox

Ignore:
Timestamp:
Feb 16, 2010 4:57:09 PM (15 years ago)
Author:
vboxsync
Message:

Main: Bstr makeover (second attempt) -- make Bstr(NULL) and Bstr() behave the same; resulting cleanup; make some more internal methods use Utf8Str instead of Bstr; fix a lot of CheckComArgNotNull?() usage

File:
1 edited

Legend:

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

    r26553 r26587  
    231231        Bstr ifname;
    232232        ComPtr<IHostNetworkInterface> iface;
    233         if (FAILED(host->FindHostNetworkInterfaceById (Guid(aId).toUtf16(), iface.asOutParam())))
     233        if (FAILED(host->FindHostNetworkInterfaceById(Guid(aId).toUtf16(), iface.asOutParam())))
    234234            return VERR_INVALID_PARAMETER;
    235         iface->COMGETTER(Name) (ifname.asOutParam());
    236         if (ifname.isNull())
     235        iface->COMGETTER(Name)(ifname.asOutParam());
     236        if (ifname.isEmpty())
    237237            return VERR_INTERNAL_ERROR;
    238238
    239         rc = progress->init (pVBox, host,
    240                             Bstr ("Removing host network interface"),
     239        rc = progress->init(pVBox,
     240                            host,
     241                            Bstr("Removing host network interface"),
    241242                            FALSE /* aCancelable */);
    242243        if(SUCCEEDED(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