diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-12 09:51:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-12 13:35:49 +0100 |
commit | df4c929bc36c168a55c3467c783fd0256b90dc45 (patch) | |
tree | 645c086662ca4b710e46c7427af39c2a05ba5c1f /comphelper | |
parent | Don't push_back(.back()), stupid (diff) | |
download | core-df4c929bc36c168a55c3467c783fd0256b90dc45.tar.gz core-df4c929bc36c168a55c3467c783fd0256b90dc45.zip |
don't need to realloc string
Change-Id: I17ec5a54b0088b56bd8c8431eb255626dbb1fac8
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/inc/comphelper/string.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/comphelper/inc/comphelper/string.hxx b/comphelper/inc/comphelper/string.hxx index 8a763e85e2f8..908832789688 100644 --- a/comphelper/inc/comphelper/string.hxx +++ b/comphelper/inc/comphelper/string.hxx @@ -49,7 +49,8 @@ namespace comphelper { namespace string { /** Allocate a new string containing space for a given number of characters. The reference count of the new string will be 1. The length of the string - will be nLen. This function does not handle out-of-memory conditions. + will be nLen. This function throws std::bad_alloc on out-of-memory + conditions. The characters of the capacity are not cleared, and the length is set to nLen, unlike the similar method of rtl_uString_new_WithLength which |