summaryrefslogtreecommitdiff
path: root/cppu/source/uno
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-08-22 14:38:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-08-22 14:55:30 +0200
commitcb327052cbf1a4deab6285b1318dec8d1c3c4d90 (patch)
tree0f1160fe800ce67b2b716345871c1c2c1473eef0 /cppu/source/uno
parent77dc93ddeaee5ee73c7b0afe49da7d699fe62e23 (diff)
Better assertions
Change-Id: I4ba11570328e17abdf063049065b4fc6dcc65a9d
Diffstat (limited to 'cppu/source/uno')
-rw-r--r--cppu/source/uno/lbmap.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx
index 6b8e152b4b53..9b4204c9da16 100644
--- a/cppu/source/uno/lbmap.cxx
+++ b/cppu/source/uno/lbmap.cxx
@@ -24,6 +24,7 @@
#include <boost/unordered_map.hpp>
#include <set>
#include <algorithm>
+#include <cassert>
#include "rtl/ustring.hxx"
#include "rtl/ustrbuf.hxx"
@@ -571,7 +572,9 @@ void SAL_CALL uno_getMapping(
rtl_uString * pAddPurpose )
SAL_THROW_EXTERN_C()
{
- OSL_ENSURE( ppMapping && pFrom && pTo, "### null ptr!" );
+ assert(ppMapping != 0);
+ assert(pFrom != 0);
+ assert(pTo != 0);
if (*ppMapping)
{
(*(*ppMapping)->release)( *ppMapping );