Kaydet (Commit) 78f3ae65 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

cppuhelper: Allow logging the used services / constructors.

Change-Id: I9090561032e2f6e97eb74b8f1e8cd1698171e6ea
üst 6f56ad53
......@@ -240,6 +240,7 @@ void cppuhelper::detail::loadSharedLibComponentFactory(
}
if (constructor.isEmpty()) {
rtl::OUString sym;
SAL_INFO("cppuhelper.shlib", "prefix=" << prefix << " implementation=" << implementation << " uri=" << uri);
if (prefix == "direct") {
sym = implementation.replace('.', '_') + "_" COMPONENT_GETFACTORY;
} else if (!prefix.isEmpty()) {
......@@ -263,6 +264,7 @@ void cppuhelper::detail::loadSharedLibComponentFactory(
reinterpret_cast<component_getFactoryFunc>(fp), uri, implementation,
serviceManager);
} else {
SAL_INFO("cppuhelper.shlib", "constructor=" << constructor);
oslGenericFunction fp = mod.getFunctionSymbol(constructor);
if (fp == 0) {
throw css::loader::CannotActivateFactoryException(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment