summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-04-04 09:27:38 +0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-04-04 15:44:32 +0200
commit5f0321b3d0666e2f9011a76e6e0a5e4efaf91c5f (patch)
treec1ad27874ece1ac60ce5d88c73a11ff3b5809ffc /cppuhelper
parent527f5da2f051e32372d9d4d5e808bdf022d18840 (diff)
fix creating com.sun.star.sheet.Solver instance
Change-Id: I100d45b8f749ece5496d8e5a0e3343dee96f7138
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/servicemanager.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/cppuhelper/source/servicemanager.cxx b/cppuhelper/source/servicemanager.cxx
index 6a0543c1286d..94d2ec5fd529 100644
--- a/cppuhelper/source/servicemanager.cxx
+++ b/cppuhelper/source/servicemanager.cxx
@@ -1246,10 +1246,9 @@ cppuhelper::ServiceManager::createContentEnumeration(
} else if (impl->factory2.is()) {
factories.push_back(css::uno::makeAny(impl->factory2));
} else {
- throw css::uno::DeploymentException(
- ("Implementation " + impl->info->name
- + " does not provide a factory"),
- static_cast< cppu::OWeakObject * >(this));
+ css::uno::Reference< css::lang::XSingleComponentFactory > factory(
+ new ImplementationWrapper(this, *i));
+ factories.push_back(css::uno::makeAny(factory));
}
}
return new ContentEnumeration(factories);