summaryrefslogtreecommitdiff
path: root/unoxml/source/service/services.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/service/services.cxx')
-rw-r--r--unoxml/source/service/services.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/unoxml/source/service/services.cxx b/unoxml/source/service/services.cxx
index f3e015fd8c15..bd77845935bc 100644
--- a/unoxml/source/service/services.cxx
+++ b/unoxml/source/service/services.cxx
@@ -54,21 +54,21 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL unoxml_component_getFactory(const sal_Char *
if (CDocumentBuilder::_getImplementationName().equalsAscii( pImplementationName ) )
{
- xFactory = Reference< XSingleServiceFactory >(
+ xFactory.set(
cppu::createOneInstanceFactory(
xServiceManager, CDocumentBuilder::_getImplementationName(),
CDocumentBuilder::_getInstance, CDocumentBuilder::_getSupportedServiceNames()));
}
else if (CSAXDocumentBuilder::_getImplementationName().equalsAscii( pImplementationName ) )
{
- xFactory = Reference< XSingleServiceFactory >(
+ xFactory.set(
cppu::createSingleFactory(
xServiceManager, CSAXDocumentBuilder::_getImplementationName(),
CSAXDocumentBuilder::_getInstance, CSAXDocumentBuilder::_getSupportedServiceNames()));
}
else if (CXPathAPI::_getImplementationName().equalsAscii( pImplementationName ) )
{
- xFactory = Reference< XSingleServiceFactory >(
+ xFactory.set(
cppu::createSingleFactory(
xServiceManager, CXPathAPI::_getImplementationName(),
CXPathAPI::_getInstance, CXPathAPI::_getSupportedServiceNames()));