VirtualBox

Ignore:
Timestamp:
Oct 1, 2013 2:43:59 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89419
Message:

iprt/list.h,xml.h: Because of gcc, we need a C++ version of a bunch of the RTListXxx macros that uses RT_FROM_CPP_MEMBER instead of RT_FROM_MEMBER. I don't dare speculate on the compilers optimizing the two macros in the same way, thus two sets of macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/xml.cpp

    r48779 r48781  
    472472#ifndef USE_STD_LIST_FOR_CHILDREN
    473473    Node *pCur, *pNext;
    474     RTListForEachSafe(&m_children, pCur, pNext, Node, m_childEntry)
     474    RTListForEachSafeCpp(&m_children, pCur, pNext, Node, m_childEntry)
    475475    {
    476476        delete pCur;
     
    764764#ifndef USE_STD_LIST_FOR_CHILDREN
    765765    Node *p;
    766     RTListForEach(&m_children, p, Node, m_childEntry)
     766    RTListForEachCpp(&m_children, p, Node, m_childEntry)
    767767#else
    768768    for (Data::InternalNodesList::iterator it = m->children.begin();
     
    798798#ifndef USE_STD_LIST_FOR_CHILDREN
    799799    Node *p;
    800     RTListForEach(&m_children, p, Node, m_childEntry)
     800    RTListForEachCpp(&m_children, p, Node, m_childEntry)
    801801    {
    802802        if (p->isElement())
     
    832832#ifndef USE_STD_LIST_FOR_CHILDREN
    833833    Node *p;
    834     RTListForEach(&m_children, p, Node, m_childEntry)
     834    RTListForEachCpp(&m_children, p, Node, m_childEntry)
    835835    {
    836836        if (p->isElement())
     
    882882     *        pointers in this variant.  */
    883883    Node *p;
    884     RTListForEach(&m_children, p, Node, m_childEntry)
     884    RTListForEachCpp(&m_children, p, Node, m_childEntry)
    885885    {
    886886        if (p->isElement())
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette