VirtualBox

Changeset 21428 in vbox for trunk/include/iprt/xml_cpp.h


Ignore:
Timestamp:
Jul 9, 2009 11:11:11 AM (15 years ago)
Author:
vboxsync
Message:

Main: remove ENoMemory exception class, replace with std::bad_alloc() to avoid string allocations after memory allocation failed already

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/xml_cpp.h

    r21409 r21428  
    122122    XmlError(xmlErrorPtr aErr);
    123123
    124     static char *Format(xmlErrorPtr aErr);
     124    static char* Format(xmlErrorPtr aErr);
    125125};
    126126
     
    158158// Runtime errors
    159159//////////////////////////////////////////////////////////////////////////////
    160 
    161 class RT_DECL_CLASS ENoMemory : public RuntimeError, public std::bad_alloc
    162 {
    163 public:
    164     ENoMemory(const char *aMsg = NULL) : RuntimeError (aMsg) {}
    165     virtual ~ENoMemory() throw() {}
    166 };
    167160
    168161class RT_DECL_CLASS EIPRTFailure : public RuntimeError
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