From 5566f41bb266f42b308a780e0c08f45c4e454b21 Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Tue, 23 Mar 2010 12:51:25 +0100 Subject: slidecopy: +createOneInstanceComponentFactory --- cppuhelper/source/factory.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cppuhelper/source/factory.cxx') diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx index bfa0eef0ca25..e6020d7fac4b 100644 --- a/cppuhelper/source/factory.cxx +++ b/cppuhelper/source/factory.cxx @@ -1127,6 +1127,17 @@ Reference< lang::XSingleComponentFactory > SAL_CALL createSingleComponentFactory Reference< XMultiServiceFactory >(), rImplementationName, 0, fptr, &rServiceNames, pModCount, sal_False ); } +Reference< lang::XSingleComponentFactory > SAL_CALL createOneInstanceComponentFactory( + ComponentFactoryFunc fptr, + OUString const & rImplementationName, + Sequence< OUString > const & rServiceNames, + rtl_ModuleCount * pModCount) + SAL_THROW( () ) +{ + return new OFactoryComponentHelper( + Reference< XMultiServiceFactory >(), rImplementationName, 0, fptr, &rServiceNames, pModCount, sal_True ); +} + } -- cgit