VirtualBox

Changeset 67734 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Jun 30, 2017 1:39:25 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116588
Message:

Main: Added Global::getOSTypeIndexFromId.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/Global.cpp

    r67733 r67734  
    538538/* static */ uint32_t Global::getOSTypeIndexFromId(const char *pszId)
    539539{
    540     size_t const cOSTypes = Global::cOSTypes;
    541     for (size_t i = 0; i < cOSTypes; ++i)
     540    for (size_t i = 0; i < RT_ELEMENTS(Global::sOSTypes); ++i)
    542541        if (!RTStrICmp(pszId, Global::sOSTypes[i].id))
    543542            return (uint32_t)i;
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