summaryrefslogtreecommitdiff
path: root/cppuhelper/source/defaultbootstrap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/source/defaultbootstrap.cxx')
-rw-r--r--cppuhelper/source/defaultbootstrap.cxx24
1 files changed, 7 insertions, 17 deletions
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;
}