diff options
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/configurationprovider.cxx | 2 | ||||
-rw-r--r-- | configmgr/source/configurationregistry.cxx | 2 | ||||
-rw-r--r-- | configmgr/source/readonlyaccess.cxx | 2 | ||||
-rw-r--r-- | configmgr/source/readwriteaccess.cxx | 2 | ||||
-rw-r--r-- | configmgr/source/update.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/configmgr/source/configurationprovider.cxx b/configmgr/source/configurationprovider.cxx index 856d6d7fbab2..f9936b6ba1a3 100644 --- a/configmgr/source/configurationprovider.cxx +++ b/configmgr/source/configurationprovider.cxx @@ -385,7 +385,7 @@ com_sun_star_comp_configuration_ConfigurationProvider_get_implementation( nullptr); } } - return cppu::acquire(static_cast< cppu::OWeakObject * >(new Service(Context, locale))); + return cppu::acquire(new Service(Context, locale)); } } diff --git a/configmgr/source/configurationregistry.cxx b/configmgr/source/configurationregistry.cxx index 3e809f3054ef..c0e945ffc622 100644 --- a/configmgr/source/configurationregistry.cxx +++ b/configmgr/source/configurationregistry.cxx @@ -632,7 +632,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_configuration_ConfigurationRegistry_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast< cppu::OWeakObject * >(new Service(context))); + return cppu::acquire(new Service(context)); } } diff --git a/configmgr/source/readonlyaccess.cxx b/configmgr/source/readonlyaccess.cxx index f777395f31fe..286963c783a2 100644 --- a/configmgr/source/readonlyaccess.cxx +++ b/configmgr/source/readonlyaccess.cxx @@ -114,7 +114,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_configuration_ReadOnlyAccess_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast< cppu::OWeakObject * >(new configmgr::read_only_access::Service(context))); + return cppu::acquire(new configmgr::read_only_access::Service(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/configmgr/source/readwriteaccess.cxx b/configmgr/source/readwriteaccess.cxx index 1eddaaa9347d..292124ddec25 100644 --- a/configmgr/source/readwriteaccess.cxx +++ b/configmgr/source/readwriteaccess.cxx @@ -136,7 +136,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_configuration_ReadWriteAccess_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast< cppu::OWeakObject * >(new configmgr::read_write_access::Service(context))); + return cppu::acquire(new configmgr::read_write_access::Service(context)); } diff --git a/configmgr/source/update.cxx b/configmgr/source/update.cxx index 8da48fce43f7..1cc2a06fe2a2 100644 --- a/configmgr/source/update.cxx +++ b/configmgr/source/update.cxx @@ -144,7 +144,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_configuration_Update_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast< cppu::OWeakObject * >(new configmgr::update::Service(context))); + return cppu::acquire(new configmgr::update::Service(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |