summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-03-30 16:53:45 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-03-30 17:34:17 +0200
commitd537da41d7b51783f98e0629917dc3831b053795 (patch)
tree7fcd80dcc47bf1489c8e3c5c9a5c713c0ceaeb2d /sal/rtl
parent8bc439333a970895b0f1dd5f353ac9f8c9031c56 (diff)
no bad_alloc throwing in string literal O(U)String functions
String literals should be reasonably short, and if memory is so low that they trigger allocation failure, something else would would trip over very soon anyway.
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/source/strtmpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/source/strtmpl.cxx b/sal/rtl/source/strtmpl.cxx
index 026d6473b6d1..8e1de8bdab0f 100644
--- a/sal/rtl/source/strtmpl.cxx
+++ b/sal/rtl/source/strtmpl.cxx
@@ -1218,7 +1218,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( newFromLiteral)( IMPL_RTL_STRINGDATA** ppThis
IMPL_RTL_STRINGNAME( release )( *ppThis );
*ppThis = IMPL_RTL_STRINGNAME( ImplAlloc )( nLen );
- OSL_ASSERT(*ppThis != NULL);
+ assert( *ppThis != NULL );
if ( (*ppThis) )
{
IMPL_RTL_STRCODE* pBuffer = (*ppThis)->buffer;