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