From 97eb00c75e173d4c8d0b483a7941ad3d2f23783e Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Sun, 7 May 2017 17:03:35 +1000 Subject: revert OSL_ASSERT changes Change-Id: I365d140446bd2a62cf8256acbfdd53fe72987380 --- pyuno/source/module/pyuno_module.cxx | 2 +- pyuno/source/module/pyuno_runtime.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pyuno') diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx index a5b363556f08..40ed69e0191b 100644 --- a/pyuno/source/module/pyuno_module.cxx +++ b/pyuno/source/module/pyuno_module.cxx @@ -407,7 +407,7 @@ static PyObject *createUnoStructHelper( PyRef returnCandidate( PyUNOStruct_new( IdlStruct, c->xInvocation ) ); PyUNO *me = reinterpret_cast( returnCandidate.get() ); TypeDescription desc( typeName ); - assert( desc.is() ); // could already instantiate an XInvocation2 ! + OSL_ASSERT( desc.is() ); // could already instantiate an XInvocation2 ! typelib_CompoundTypeDescription *pCompType = reinterpret_cast(desc.get()); diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index ed13cb748705..7610ee6f7a70 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -517,7 +517,7 @@ PyRef Runtime::any2PyObject (const Any &a ) const { PyRef element; element = any2PyObject (tc->convertTo (s[i], s[i].getValueType() )); - assert( element.is() ); + OSL_ASSERT( element.is() ); PyTuple_SetItem( tuple.get(), i, element.getAcquired() ); } } -- cgit