diff options
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx b/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx index 422b6893b3a2..466d83ef46a4 100644 --- a/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx +++ b/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx @@ -23,9 +23,6 @@ #include <vtablefactory.hxx> #include <com/sun/star/uno/XInterface.hpp> -#include <osl/getglobalmutex.hxx> -#include <osl/mutex.hxx> -#include <rtl/instance.hxx> #include <typelib/typedescription.h> #include <cstddef> @@ -53,23 +50,6 @@ void dso_exit() { } } -namespace { - -struct InitVtableFactory { - bridges::cpp_uno::shared::VtableFactory * operator()() { - return pInstance; - } -}; - -bridges::cpp_uno::shared::VtableFactory * getVtableFactory() { - return rtl_Instance< - bridges::cpp_uno::shared::VtableFactory, InitVtableFactory, - osl::MutexGuard, osl::GetGlobalMutex >::create( - InitVtableFactory(), osl::GetGlobalMutex()); -} - -} - namespace bridges { namespace cpp_uno { namespace shared { void freeCppInterfaceProxy(uno_ExtEnvironment * pEnv, void * pInterface) @@ -101,7 +81,7 @@ com::sun::star::uno::XInterface * CppInterfaceProxy::create( typelib_typedescription_complete( reinterpret_cast< typelib_TypeDescription ** >(&pTypeDescr)); const bridges::cpp_uno::shared::VtableFactory::Vtables& rVtables( - getVtableFactory()->getVtables(pTypeDescr)); + pInstance->getVtables(pTypeDescr)); std::unique_ptr< char[] > pMemory( new char[ sizeof (CppInterfaceProxy) |