summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2000-12-22 09:49:29 +0000
committerDaniel Boelzle <dbo@openoffice.org>2000-12-22 09:49:29 +0000
commitacd417525c352c65bb7753cea8d0b6946c9f047e (patch)
tree522bb2f641614b56b513e57bebd01d0c4f9ef456
parenta053543258d4167123590833357a9139840b82a9 (diff)
added useful assertions
-rw-r--r--bridges/inc/bridges/cpp_uno/bridge.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/bridges/inc/bridges/cpp_uno/bridge.hxx b/bridges/inc/bridges/cpp_uno/bridge.hxx
index 37cb985658dd..1940282975a1 100644
--- a/bridges/inc/bridges/cpp_uno/bridge.hxx
+++ b/bridges/inc/bridges/cpp_uno/bridge.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bridge.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: dbo $ $Date: 2000-12-21 14:44:41 $
+ * last change: $Author: dbo $ $Date: 2000-12-22 10:49:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -185,6 +185,7 @@ inline cppu_cppInterfaceProxy::cppu_cppInterfaceProxy(
::typelib_typedescription_acquire( (typelib_TypeDescription *)pTypeDescr );
if (! ((typelib_TypeDescription *)pTypeDescr)->bComplete)
::typelib_typedescription_complete( (typelib_TypeDescription **)&pTypeDescr );
+ OSL_ENSURE( ((typelib_TypeDescription *)pTypeDescr)->bComplete, "### type is incomplete!" );
(*pBridge->pUnoEnv->registerInterface)(
pBridge->pUnoEnv, reinterpret_cast< void ** >( &pUnoI ), oid.pData, pTypeDescr );
(*pUnoI->acquire)( pUnoI );
@@ -300,6 +301,7 @@ inline cppu_unoInterfaceProxy::cppu_unoInterfaceProxy(
::typelib_typedescription_acquire( (typelib_TypeDescription *)pTypeDescr );
if (! ((typelib_TypeDescription *)pTypeDescr)->bComplete)
::typelib_typedescription_complete( (typelib_TypeDescription **)&pTypeDescr );
+ OSL_ENSURE( ((typelib_TypeDescription *)pTypeDescr)->bComplete, "### type is incomplete!" );
(*pBridge->pCppEnv->registerInterface)(
pBridge->pCppEnv, reinterpret_cast< void ** >( &pCppI ), oid.pData, pTypeDescr );
pCppI->acquire();