summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-05-07 08:14:30 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2017-05-07 08:14:30 +1000
commit9ff87d13932ca68a775a439df378bed25f9f0e8f (patch)
tree5a729ffd377e46d76d3024005d31445a0b1e92de /pyuno
parent9a274915a16eea5e3ce51a27b1a8741ac5e785b8 (diff)
tdf#43157: convert pyuno from OSL_ASSERT to assert
Change-Id: I2eb634ed3f5403df910371631f42219a9f8744eb
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_module.cxx2
-rw-r--r--pyuno/source/module/pyuno_runtime.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index 40ed69e0191b..a5b363556f08 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<PyUNO*>( returnCandidate.get() );
TypeDescription desc( typeName );
- OSL_ASSERT( desc.is() ); // could already instantiate an XInvocation2 !
+ assert( desc.is() ); // could already instantiate an XInvocation2 !
typelib_CompoundTypeDescription *pCompType =
reinterpret_cast<typelib_CompoundTypeDescription *>(desc.get());
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx
index 7610ee6f7a70..ed13cb748705 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() ));
- OSL_ASSERT( element.is() );
+ assert( element.is() );
PyTuple_SetItem( tuple.get(), i, element.getAcquired() );
}
}