diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-10 10:03:36 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-10 16:23:14 +0100 |
commit | 7921f47ec6292ea2bd4807423ac46d9dacdd906e (patch) | |
tree | 957c3a8ef6b2b851c69af146d7642e61dffa66be /connectivity | |
parent | 7ba7a1170a46ad340d06822a03f7196ccef29d84 (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>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/manager/mdrivermanager.cxx | 3 |
2 files changed, 2 insertions, 4 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)); } |