diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-30 16:58:44 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-30 17:34:17 +0200 |
commit | 1b9772c6edb124bbd28004e312957d7ac854dcbe (patch) | |
tree | d12b26b3cc14f9c606fcf806303e00c1bf4892fa | |
parent | d537da41d7b51783f98e0629917dc3831b053795 (diff) |
do not just warn on allocation failure, simply abort
-rw-r--r-- | sal/inc/rtl/string.hxx | 2 | ||||
-rw-r--r-- | sal/inc/rtl/ustring.hxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx index 72af04ee79bc..8dbb41373a1c 100644 --- a/sal/inc/rtl/string.hxx +++ b/sal/inc/rtl/string.hxx @@ -249,7 +249,7 @@ public: rtl_uString2String( &pData, value, length, encoding, convertFlags ); if (pData == 0) { #if defined EXCEPTIONS_OFF - SAL_WARN("sal", "std::bad_alloc but EXCEPTIONS_OFF"); + abort(); #else throw std::bad_alloc(); #endif diff --git a/sal/inc/rtl/ustring.hxx b/sal/inc/rtl/ustring.hxx index a5528894e0d4..8035bdc50252 100644 --- a/sal/inc/rtl/ustring.hxx +++ b/sal/inc/rtl/ustring.hxx @@ -284,7 +284,7 @@ public: rtl_string2UString( &pData, value, length, encoding, convertFlags ); if (pData == 0) { #if defined EXCEPTIONS_OFF - SAL_WARN("sal", "std::bad_alloc but EXCEPTIONS_OFF"); + abort(); #else throw std::bad_alloc(); #endif @@ -1734,7 +1734,7 @@ public: rtl_uString_intern( &pNew, pData ); if (pNew == 0) { #if defined EXCEPTIONS_OFF - SAL_WARN("sal", "std::bad_alloc but EXCEPTIONS_OFF"); + abort(); #else throw std::bad_alloc(); #endif @@ -1777,7 +1777,7 @@ public: convertFlags, pInfo ); if (pNew == 0) { #if defined EXCEPTIONS_OFF - SAL_WARN("sal", "std::bad_alloc but EXCEPTIONS_OFF"); + abort(); #else throw std::bad_alloc(); #endif |