summaryrefslogtreecommitdiff
path: root/sal/rtl/math.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-20 07:44:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-20 08:34:06 +0100
commit186990395d72a803dd4a9f087fe4e05f49e69ad2 (patch)
tree44c28d013c85b708a418e6e6b5ce71907fde7285 /sal/rtl/math.cxx
parent8cbfce51ff659581a9602b22c36b9af1c69e51f8 (diff)
Clean up Mac _imp_getProcessLocale
Introduces OUStringBuffer::appendUninitialized. Change-Id: If225ec4d798e0df91cad60130e3f22ee26b88abb
Diffstat (limited to 'sal/rtl/math.cxx')
-rw-r--r--sal/rtl/math.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index e030b9ca0c33..ac5a79387617 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -31,6 +31,7 @@
#include "sal/types.h"
#include <algorithm>
+#include <cassert>
#include <float.h>
#include <limits.h>
#include <math.h>
@@ -256,6 +257,7 @@ struct UStringTraits
sal_Int32 * pCapacity, sal_Int32 * pOffset,
sal_Unicode const * pChars, sal_Int32 nLen)
{
+ assert(pChars != nullptr);
rtl_uStringbuffer_insert(pBuffer, pCapacity, *pOffset, pChars, nLen);
*pOffset += nLen;
}