summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-03-10 10:03:36 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-10 16:23:14 +0100
commit7921f47ec6292ea2bd4807423ac46d9dacdd906e (patch)
tree957c3a8ef6b2b851c69af146d7642e61dffa66be
parent7ba7a1170a46ad340d06822a03f7196ccef29d84 (diff)
Drop 'static_cast<cppu::OWeakObject*>' syntactic noise
... a leftover from 96388e5e809a48573970df9b6b2649517a08447f. Change-Id: I909a470612c421472d8bf94f80e3e94ecb51d6e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112257 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx3
-rw-r--r--connectivity/source/manager/mdrivermanager.cxx3
-rw-r--r--oox/source/core/fasttokenhandler.cxx2
-rw-r--r--stoc/source/proxy_factory/proxyfac.cxx2
-rw-r--r--ucb/source/core/provprox.cxx3
5 files changed, 5 insertions, 8 deletions
diff --git a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
index 71cb17b0f4ec..faa2063b27b8 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
@@ -132,8 +132,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
connectivity_moz_MozillaBootstrap_get_implementation(
css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&)
{
- return cppu::acquire(
- static_cast<cppu::OWeakObject*>(new connectivity::mozab::MozillaBootstrap()));
+ return cppu::acquire(new connectivity::mozab::MozillaBootstrap());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx
index 8492eab2860e..e3a0c82efca3 100644
--- a/connectivity/source/manager/mdrivermanager.cxx
+++ b/connectivity/source/manager/mdrivermanager.cxx
@@ -658,8 +658,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
connectivity_OSDBCDriverManager_get_implementation(
css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&)
{
- return cppu::acquire(
- static_cast<cppu::OWeakObject*>(new drivermanager::OSDBCDriverManager(context)));
+ return cppu::acquire(new drivermanager::OSDBCDriverManager(context));
}
diff --git a/oox/source/core/fasttokenhandler.cxx b/oox/source/core/fasttokenhandler.cxx
index 55b0389b8d18..a57be30e0c2c 100644
--- a/oox/source/core/fasttokenhandler.cxx
+++ b/oox/source/core/fasttokenhandler.cxx
@@ -76,7 +76,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
com_sun_star_comp_oox_core_FastTokenHandler_get_implementation(
uno::XComponentContext* /*pCtx*/, uno::Sequence<uno::Any> const& /*rSeq*/)
{
- return cppu::acquire(static_cast<sax_fastparser::FastTokenHandlerBase*>(new oox::core::FastTokenHandler()));
+ return cppu::acquire(new oox::core::FastTokenHandler());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx
index b1c5597d0311..107d37160d41 100644
--- a/stoc/source/proxy_factory/proxyfac.cxx
+++ b/stoc/source/proxy_factory/proxyfac.cxx
@@ -401,7 +401,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
stoc_FactoryImpl_get_implementation(
css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&)
{
- return cppu::acquire(static_cast< ::cppu::OWeakObject * >(new FactoryImpl));
+ return cppu::acquire(new FactoryImpl);
}
diff --git a/ucb/source/core/provprox.cxx b/ucb/source/core/provprox.cxx
index 2352aebf8e9a..08836311b0cf 100644
--- a/ucb/source/core/provprox.cxx
+++ b/ucb/source/core/provprox.cxx
@@ -69,8 +69,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
ucb_UcbContentProviderProxyFactory_get_implementation(
css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&)
{
- return cppu::acquire(
- static_cast<cppu::OWeakObject*>(new UcbContentProviderProxyFactory(context)));
+ return cppu::acquire(new UcbContentProviderProxyFactory(context));
}