summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-20 13:39:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-20 13:39:52 +0100
commitb8793748b0eaaa3fe405587fcb2a3021adab833b (patch)
tree39b683691a8b8089831939a3a84ba1d62d614cb5 /filter
parente3990370f832c8a69d1b6b22ec315dc0616d5535 (diff)
Seems more natural to pass a homogenous list by initializer_list
...than by template parameter pack (even if that requires using ServiceDecl*, as initializer_list cannot take reference types) Change-Id: Ia986201b52d8daedfe925f132ebc79bc2c0ba378
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphic/Services.cxx4
-rw-r--r--filter/source/svg/svgfilter.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/graphic/Services.cxx b/filter/source/graphic/Services.cxx
index c8073888c58f..13d0969168b6 100644
--- a/filter/source/graphic/Services.cxx
+++ b/filter/source/graphic/Services.cxx
@@ -42,11 +42,11 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL graphicfilter_component_getFactor
{
if ( rtl_str_compare (pImplementationName, GRAPHIC_EXPORT_FILTER_SERVICE) == 0 )
{
- return component_getFactoryHelper( pImplementationName, graphicExportFilter );
+ return comphelper::service_decl::component_getFactoryHelper( pImplementationName, {&graphicExportFilter} );
}
else if ( rtl_str_compare (pImplementationName, GRAPHIC_EXPORT_DIALOG_SERVICE) == 0 )
{
- return component_getFactoryHelper( pImplementationName, graphicExportDialog );
+ return comphelper::service_decl::component_getFactoryHelper( pImplementationName, {&graphicExportDialog} );
}
return nullptr;
}
diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx
index 16595cf93140..9303b8fcd657 100644
--- a/filter/source/svg/svgfilter.cxx
+++ b/filter/source/svg/svgfilter.cxx
@@ -413,11 +413,11 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL svgfilter_component_getFactory(
{
if ( rtl_str_compare (pImplName, SVG_FILTER_IMPL_NAME) == 0 )
{
- return component_getFactoryHelper( pImplName, svgFilter );
+ return sdecl::component_getFactoryHelper( pImplName, {&svgFilter} );
}
else if ( rtl_str_compare (pImplName, SVG_WRITER_IMPL_NAME) == 0 )
{
- return component_getFactoryHelper( pImplName, svgWriter );
+ return sdecl::component_getFactoryHelper( pImplName, {&svgWriter} );
}
return nullptr;
}