From df4c929bc36c168a55c3467c783fd0256b90dc45 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 12 Jun 2012 09:51:38 +0100 Subject: don't need to realloc string Change-Id: I17ec5a54b0088b56bd8c8431eb255626dbb1fac8 --- comphelper/inc/comphelper/string.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'comphelper/inc') 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 -- cgit