summaryrefslogtreecommitdiff
path: root/configmgr/source/components.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr/source/components.cxx')
-rw-r--r--configmgr/source/components.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index e42fb48352e2..c08744e99a8e 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -29,7 +29,6 @@
#include "com/sun/star/beans/XPropertySet.hpp"
#include "com/sun/star/container/NoSuchElementException.hpp"
#include "com/sun/star/lang/WrappedTargetException.hpp"
-#include "com/sun/star/lang/XMultiComponentFactory.hpp"
#include "com/sun/star/uno/Any.hxx"
#include "com/sun/star/uno/Exception.hpp"
#include "com/sun/star/uno/Reference.hxx"
@@ -431,9 +430,8 @@ css::beans::Optional< css::uno::Any > Components::getExternalValue(
if (j == externalServices_.end()) {
css::uno::Reference< css::uno::XInterface > service;
try {
- service = css::uno::Reference< css::lang::XMultiComponentFactory >(
- context_->getServiceManager(), css::uno::UNO_SET_THROW)->
- createInstanceWithContext(name, context_);
+ service = context_->getServiceManager()->createInstanceWithContext(
+ name, context_);
} catch (css::uno::RuntimeException &) {
// Assuming these exceptions are real errors:
throw;