From fc9d23ff550194ba50fc6506ec901c22681d1b1c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 15 Jan 2013 18:05:07 +0100 Subject: Reorganize defaultbootstrap so that typedescriptionprovider can use servicemgr ...instead of having to rely on the odd bootstrapInitialSF and explicit loadSharedLibComponentFactory. Change-Id: I2fb212024c483254da015db3af43d9002051dddc --- cppuhelper/source/defaultbootstrap.cxx | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'cppuhelper/source/defaultbootstrap.cxx') diff --git a/cppuhelper/source/defaultbootstrap.cxx b/cppuhelper/source/defaultbootstrap.cxx index e4b3cd537117..d4863b323c73 100644 --- a/cppuhelper/source/defaultbootstrap.cxx +++ b/cppuhelper/source/defaultbootstrap.cxx @@ -34,7 +34,6 @@ #include "com/sun/star/container/XHierarchicalNameAccess.hpp" #include "com/sun/star/container/XSet.hpp" -#include "com/sun/star/registry/XSimpleRegistry.hpp" #include "com/sun/star/uno/DeploymentException.hpp" #include "com/sun/star/uno/Reference.hxx" #include "com/sun/star/uno/XComponentContext.hpp" @@ -127,22 +126,13 @@ cppu::defaultBootstrap_InitialComponentContext(rtl::OUString const & iniUri) context->getValueByName( "/singletons/com.sun.star.reflection.theTypeDescriptionManager"), css::uno::UNO_QUERY_THROW); - css::uno::Reference< css::registry::XSimpleRegistry > typereg( - cppuhelper::createTypeRegistry( - getBootstrapVariable(bs, "UNO_TYPES"), - getBootstrapVariable(bs, "URE_INTERNAL_LIB_DIR"))); - if (typereg.is()) { - css::uno::Sequence< css::uno::Any > arg(1); - arg[0] <<= typereg; - css::uno::Reference< css::container::XSet >( - tdmgr, css::uno::UNO_QUERY_THROW)-> - insert( - css::uno::makeAny( - smgr->createInstanceWithArgumentsAndContext( - ("com.sun.star.comp.stoc" - ".RegistryTypeDescriptionProvider"), - arg, context))); - } + css::uno::Reference< css::container::XSet >( + tdmgr, css::uno::UNO_QUERY_THROW)-> + insert( + css::uno::makeAny( + cppuhelper::createTypeDescriptionProvider( + getBootstrapVariable(bs, "UNO_TYPES"), smgr.get(), + context))); cppu::installTypeDescriptionManager(tdmgr); return context; } -- cgit