diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2002-10-29 09:37:37 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2002-10-29 09:37:37 +0000 |
commit | 4e75417aed249afccf4d8df33e9e5ce9e2d9f573 (patch) | |
tree | 9e83f75847718bce67e62bf7d92c36281ebe1a7f /bridges/inc | |
parent | 1bae67bbcfcf5c08a83b5eee20302f3d2b541a24 (diff) |
#104312# fixing potential mt problem
Diffstat (limited to 'bridges/inc')
-rw-r--r-- | bridges/inc/bridges/cpp_uno/bridge.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bridges/inc/bridges/cpp_uno/bridge.hxx b/bridges/inc/bridges/cpp_uno/bridge.hxx index 6cd81783c9ea..0fe942db925e 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.9 $ + * $Revision: 1.10 $ * - * last change: $Author: dbo $ $Date: 2001-10-26 07:22:56 $ + * last change: $Author: dbo $ $Date: 2002-10-29 10:37:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -188,9 +188,9 @@ inline cppu_cppInterfaceProxy::cppu_cppInterfaceProxy( if (! ((typelib_TypeDescription *)pTypeDescr)->bComplete) ::typelib_typedescription_complete( (typelib_TypeDescription **)&pTypeDescr ); OSL_ENSURE( ((typelib_TypeDescription *)pTypeDescr)->bComplete, "### type is incomplete!" ); + (*pUnoI->acquire)( pUnoI ); (*pBridge->pUnoEnv->registerInterface)( pBridge->pUnoEnv, reinterpret_cast< void ** >( &pUnoI ), oid.pData, pTypeDescr ); - (*pUnoI->acquire)( pUnoI ); } @@ -305,9 +305,9 @@ inline cppu_unoInterfaceProxy::cppu_unoInterfaceProxy( if (! ((typelib_TypeDescription *)pTypeDescr)->bComplete) ::typelib_typedescription_complete( (typelib_TypeDescription **)&pTypeDescr ); OSL_ENSURE( ((typelib_TypeDescription *)pTypeDescr)->bComplete, "### type is incomplete!" ); + pCppI->acquire(); (*pBridge->pCppEnv->registerInterface)( pBridge->pCppEnv, reinterpret_cast< void ** >( &pCppI ), oid.pData, pTypeDescr ); - pCppI->acquire(); // uno_Interface uno_Interface::acquire = cppu_unoInterfaceProxy_acquire; |