diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2015-12-12 18:59:32 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2015-12-12 19:13:14 +0100 |
commit | e32dcddaa5b74b3d163413c685d7c088cef1cbd9 (patch) | |
tree | 0218f4ceb887e845c17df2edb8ccf7aa72cf01fc /dbaccess | |
parent | 0769ad9284c4d71ab11e4460c0f380eca8d4c788 (diff) |
OOneInstanceAutoRegistration is not used
Change-Id: I6928dec92655e4655af6c519405712892bf7d870
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/inc/registrationhelper.hxx | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/dbaccess/source/inc/registrationhelper.hxx b/dbaccess/source/inc/registrationhelper.hxx index 4703147b00dc..b49b40fcdb59 100644 --- a/dbaccess/source/inc/registrationhelper.hxx +++ b/dbaccess/source/inc/registrationhelper.hxx @@ -87,7 +87,6 @@ public: Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&)</code><BR> the instantiation of this object will automatically register the class via <code>OModuleRegistration::registerComponent</code>. The factory creation function used is <code>::cppu::createSingleFactory</code>.<BR> - @see OOneInstanceAutoRegistration */ OMultiInstanceAutoRegistration(); ~OMultiInstanceAutoRegistration(); @@ -110,39 +109,4 @@ OMultiInstanceAutoRegistration<TYPE>::~OMultiInstanceAutoRegistration() OModuleRegistration::revokeComponent(TYPE::getImplementationName_Static()); } -template <class TYPE> -class OOneInstanceAutoRegistration -{ -public: - /** provided that the template argument has three methods<BR> - <code>static OUString getImplementationName_Static()</code><BR> - <code>static css::uno::Sequence< OUString > getSupportedServiceNames_Static()</code><BR> - and<BR> - <code>static css::uno::Reference< css::uno::XInterface > - Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&)</code><BR> - the instantiation of this object will automatically register the class via <code>OModuleRegistration::registerComponent</code>. - The factory creation function used is <code>::cppu::createSingleFactory</code>.<BR> - @see OMultiInstanceAutoRegistration - */ - OOneInstanceAutoRegistration(); - ~OOneInstanceAutoRegistration(); -}; - -template <class TYPE> -OOneInstanceAutoRegistration<TYPE>::OOneInstanceAutoRegistration() -{ - OModuleRegistration::registerComponent( - TYPE::getImplementationName_Static(), - TYPE::getSupportedServiceNames_Static(), - TYPE::Create, - ::cppu::createOneInstanceFactory - ); -} - -template <class TYPE> -OOneInstanceAutoRegistration<TYPE>::~OOneInstanceAutoRegistration() -{ - OModuleRegistration::revokeComponent(TYPE::getImplementationName_Static()); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |