VirtualBox

Changeset 101345 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 4, 2023 7:39:24 PM (16 months ago)
Author:
vboxsync
Message:

Main/Settings.cpp: Fixed incorrect and inefficient (you don't use find) endsWith() emulation in MachineConfigFile::convertGuestOSTypeSuffix (regression from r159257). Use new RTCString::endsWith methods. Untested. bugref:10384

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/settings.h

    r101274 r101345  
    15621562    static bool isAudioDriverAllowedOnThisHost(AudioDriverType_T enmDrvType);
    15631563    static AudioDriverType_T getHostDefaultAudioDriver();
    1564     static bool convertGuestOSTypeSuffix(com::Utf8Str &str, const char *pszToReplace, const char *pszReplacement);
    15651564
    15661565private:
     
    15871586    void readGroups(const xml::ElementNode &elmGroups, StringsList &llGroups);
    15881587    bool readSnapshot(const com::Guid &curSnapshotUuid, const xml::ElementNode &elmSnapshot, Snapshot &snap);
    1589     void convertGuestOSTypeFromPre1_5(com::Utf8Str &str);
    1590     void convertGuestOSTypeFromPre1_20(com::Utf8Str &str);
    1591     void convertGuestOSTypeToPre1_20(com::Utf8Str &str);
     1588    static void convertGuestOSTypeFromPre1_5(com::Utf8Str &str);
     1589    static void convertGuestOSTypeFromPre1_20(com::Utf8Str &str);
     1590    static void convertGuestOSTypeToPre1_20(com::Utf8Str &str);
     1591    static void convertGuestOSTypeSuffix(com::Utf8Str &str, const char *pszToReplace, const char *pszReplacement);
    15921592    void readMachine(const xml::ElementNode &elmMachine);
    15931593    void readMachineEncrypted(const xml::ElementNode &elmMachine, PCVBOXCRYPTOIF pCryptoIf, const char *pszPassword);
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