[Libreoffice-commits] core.git: connectivity/source oox/source stoc/source ucb/source

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Wed Mar 10 15:23:57 UTC 2021


 connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx |    3 +--
 connectivity/source/manager/mdrivermanager.cxx                    |    3 +--
 oox/source/core/fasttokenhandler.cxx                              |    2 +-
 stoc/source/proxy_factory/proxyfac.cxx                            |    2 +-
 ucb/source/core/provprox.cxx                                      |    3 +--
 5 files changed, 5 insertions(+), 8 deletions(-)

New commits:
commit 7921f47ec6292ea2bd4807423ac46d9dacdd906e
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed Mar 10 10:03:36 2021 +0300
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Wed Mar 10 16:23:14 2021 +0100

    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 at collabora.com>

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));
 }
 
 


More information about the Libreoffice-commits mailing list