Kaydet (Commit) cb327052 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Better assertions

Change-Id: I4ba11570328e17abdf063049065b4fc6dcc65a9d
üst 77dc93dd
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <boost/unordered_map.hpp> #include <boost/unordered_map.hpp>
#include <set> #include <set>
#include <algorithm> #include <algorithm>
#include <cassert>
#include "rtl/ustring.hxx" #include "rtl/ustring.hxx"
#include "rtl/ustrbuf.hxx" #include "rtl/ustrbuf.hxx"
...@@ -571,7 +572,9 @@ void SAL_CALL uno_getMapping( ...@@ -571,7 +572,9 @@ void SAL_CALL uno_getMapping(
rtl_uString * pAddPurpose ) rtl_uString * pAddPurpose )
SAL_THROW_EXTERN_C() SAL_THROW_EXTERN_C()
{ {
OSL_ENSURE( ppMapping && pFrom && pTo, "### null ptr!" ); assert(ppMapping != 0);
assert(pFrom != 0);
assert(pTo != 0);
if (*ppMapping) if (*ppMapping)
{ {
(*(*ppMapping)->release)( *ppMapping ); (*(*ppMapping)->release)( *ppMapping );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment