VirtualBox

Changeset 66938 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
May 17, 2017 4:09:58 PM (8 years ago)
Author:
vboxsync
Message:

Main/VirtualBox+DHCPServer+GuestOSType: lots of redundant Bstr/Utf8Str conversions removed, less Bstr use in general avoiding the need for conversion, plus some cleanup of VirtualBox::i_findGuestOSType which is now used consistently

Location:
trunk/src/VBox/Main/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/DHCPServerImpl.h

    r61009 r66938  
    7070public:
    7171
    72     DECLARE_EMPTY_CTOR_DTOR (DHCPServer)
     72    DECLARE_EMPTY_CTOR_DTOR(DHCPServer)
    7373
    7474    HRESULT FinalConstruct();
     
    7676
    7777    HRESULT init(VirtualBox *aVirtualBox,
    78                  IN_BSTR aName);
     78                 const com::Utf8Str &aName);
    7979    HRESULT init(VirtualBox *aVirtualBox,
    8080                 const settings::DHCPServer &data);
  • trunk/src/VBox/Main/include/GuestOSTypeImpl.h

    r66925 r66938  
    3939
    4040    // public methods only for internal purposes
    41     const Bstr &i_id() const { return mID; }
    42     const Bstr &i_familyId() const { return mFamilyID; }
     41    const Utf8Str &i_id() const { return mID; }
     42    const Utf8Str &i_familyId() const { return mFamilyID; }
    4343    bool i_is64Bit() const { return !!(mOSHint & VBOXOSHINT_64BIT); }
    4444    bool i_recommendedIOAPIC() const { return !!(mOSHint & VBOXOSHINT_IOAPIC); }
     
    8585
    8686
    87     const Bstr mFamilyID;
    88     const Bstr mFamilyDescription;
    89     const Bstr mID;
    90     const Bstr mDescription;
     87    const Utf8Str mFamilyID;
     88    const Utf8Str mFamilyDescription;
     89    const Utf8Str mID;
     90    const Utf8Str mDescription;
    9191    const VBOXOSTYPE mOSType;
    9292    const uint32_t mOSHint;
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r65088 r66938  
    161161    void i_onHostNameResolutionConfigurationChange();
    162162
    163     int i_natNetworkRefInc(IN_BSTR aNetworkName);
    164     int i_natNetworkRefDec(IN_BSTR aNetworkName);
     163    int i_natNetworkRefInc(const Utf8Str &aNetworkName);
     164    int i_natNetworkRefDec(const Utf8Str &aNetworkName);
    165165
    166166    ComObjPtr<GuestOSType> i_getUnknownOSType();
     
    199199                                   ComObjPtr<Medium> &pMedium);
    200200
    201     HRESULT i_findGuestOSType(const Bstr &bstrOSType,
    202                               GuestOSType*& pGuestOSType);
     201    HRESULT i_findGuestOSType(const Utf8Str &strOSType,
     202                              ComObjPtr<GuestOSType> &guestOSType);
    203203
    204204    const Guid &i_getGlobalRegistryId() const;
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