VirtualBox

Ignore:
Timestamp:
Nov 9, 2024 12:38:48 AM (3 months ago)
Author:
vboxsync
Message:

Main/ObjectsTracker.h/cpp: Another build fix attempt - the extpack solaris VM doesn't know the C++11 for loop style. It also doesn't have std::map::at(). Kicked out the std::string variant of the map type, it just clutters up the code with unnecessary string copies. jiraref:VBP-1187

File:
1 edited

Legend:

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

    r106902 r106903  
    150150};
    151151
    152 /** The string representation for object IDs in the internal map.
    153  * @todo r=bird: Why are you using std::string here? We use should use
    154  *       com::Utf8Str where possible. In this case, though, it's a com::Guid
    155  *       which would have much more efficient storage compared to both the
    156  *       string variants... */
    157 #if 0 /* The solaris VM seems to have trouble with this or something related to it. */
    158 typedef std::string ObjIdString_T;
    159 #else
    160 typedef com::Utf8Str ObjIdString_T;
    161 #endif
    162152
    163153/////////////////////////////////////////////////////////////////////////////
     
    171161    std::set<com::Utf8Str> m_trackedObjectIds;//Full list of valid + invalid objects
    172162    std::set<com::Utf8Str> m_trackedInvalidObjectIds;//List of invalid objects only
    173     std::map<ObjIdString_T, TrackedObjectData> m_trackedObjectsData;//Mapping Object Id -> Object Data
     163    std::map<com::Utf8Str, TrackedObjectData> m_trackedObjectsData;//Mapping Object Id -> Object Data
    174164
    175165    uint64_t m_Added;//Counter of the added objects
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