diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-08-22 14:38:01 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-08-22 14:55:30 +0200 |
commit | cb327052cbf1a4deab6285b1318dec8d1c3c4d90 (patch) | |
tree | 0f1160fe800ce67b2b716345871c1c2c1473eef0 /cppu | |
parent | 77dc93ddeaee5ee73c7b0afe49da7d699fe62e23 (diff) |
Better assertions
Change-Id: I4ba11570328e17abdf063049065b4fc6dcc65a9d
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/lbmap.cxx | 5 |
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 ); |