summaryrefslogtreecommitdiff
path: root/ure/source
diff options
context:
space:
mode:
Diffstat (limited to 'ure/source')
-rw-r--r--ure/source/uretest/cppmain.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/ure/source/uretest/cppmain.cc b/ure/source/uretest/cppmain.cc
index 331598efdb8a..4de525e1e58c 100644
--- a/ure/source/uretest/cppmain.cc
+++ b/ure/source/uretest/cppmain.cc
@@ -111,7 +111,6 @@ private:
"com.sun.star.loader.SharedLibrary",
"com.sun.star.reflection.CoreReflection",
"com.sun.star.reflection.ProxyFactory",
- "com.sun.star.reflection.TypeDescriptionManager",
"com.sun.star.registry.ImplementationRegistration",
"com.sun.star.registry.NestedRegistry",
"com.sun.star.registry.SimpleRegistry",
@@ -145,6 +144,15 @@ private:
static_cast< ::cppu::OWeakObject * >(this));
}
}
+ static char const * const singletons[] = {
+ "com.sun.star.reflection.theTypeDescriptionManager"
+ };
+ for (std::size_t i = 0; i != SAL_N_ELEMENTS(singletons); ++i) {
+ css::uno::Reference< css::uno::XInterface > instance(
+ context_->getValueByName(
+ "/singletons/" + rtl::OUString::createFromAscii(singletons[i])),
+ css::uno::UNO_QUERY_THROW);
+ }
css::util::theMacroExpander::get(context_);
test(
::test::types::CppTest::create(context_),