VirtualBox

Changeset 79481 in vbox for trunk/include/iprt/cpp


Ignore:
Timestamp:
Jul 3, 2019 2:33:49 AM (5 years ago)
Author:
vboxsync
Message:

iprt/cpp/list.h,ministring.h: Heed RT_NEED_NEW_AND_DELETE.

Location:
trunk/include/iprt/cpp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/list.h

    r76585 r79481  
    126126
    127127    /* Define our own new and delete. */
     128#ifdef RT_NEED_NEW_AND_DELETE
     129    RTMEM_IMPLEMENT_NEW_AND_DELETE();
     130#else
    128131    RTMEMEF_NEW_AND_DELETE_OPERATORS();
     132#endif
    129133};
    130134
     
    827831
    828832    /* Define our own new and delete. */
     833#ifdef RT_NEED_NEW_AND_DELETE
     834    RTMEM_IMPLEMENT_NEW_AND_DELETE();
     835#else
    829836    RTMEMEF_NEW_AND_DELETE_OPERATORS();
     837#endif
    830838
    831839    /**
     
    976984
    977985    /* Define our own new and delete. */
     986#ifdef RT_NEED_NEW_AND_DELETE
     987    RTMEM_IMPLEMENT_NEW_AND_DELETE();
     988#else
    978989    RTMEMEF_NEW_AND_DELETE_OPERATORS();
     990#endif
    979991};
    980992
     
    10041016
    10051017    /* Define our own new and delete. */
     1018#ifdef RT_NEED_NEW_AND_DELETE
     1019    RTMEM_IMPLEMENT_NEW_AND_DELETE();
     1020#else
    10061021    RTMEMEF_NEW_AND_DELETE_OPERATORS();
     1022#endif
    10071023};
    10081024
     
    10321048
    10331049    /* Define our own new and delete. */
     1050#ifdef RT_NEED_NEW_AND_DELETE
     1051    RTMEM_IMPLEMENT_NEW_AND_DELETE();
     1052#else
    10341053    RTMEMEF_NEW_AND_DELETE_OPERATORS();
     1054#endif
    10351055};
    10361056
  • trunk/include/iprt/cpp/ministring.h

    r76585 r79481  
    7070{
    7171public:
     72#ifdef RT_NEED_NEW_AND_DELETE
     73    RTMEM_IMPLEMENT_NEW_AND_DELETE();
     74#endif
     75
    7276    /**
    7377     * Creates an empty string that has no memory allocated.
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