diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-10 09:41:13 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-10 08:22:26 +0100 |
commit | 96388e5e809a48573970df9b6b2649517a08447f (patch) | |
tree | c686721e917a0a1bb5cf27b3468bd80b3c62b416 /configmgr | |
parent | 24dd6c5f9861340fafccad9504a99a939cbba0a6 (diff) |
Drop 'static_cast<cppu::OWeakObject*>' syntactic noise
... where the object is created in-place, and its type is known
Change-Id: Ifabfcf2f3ad0d60152f14e8d970c1faa42115288
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112256
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
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: */ |