diff options
56 files changed, 66 insertions, 68 deletions
diff --git a/binaryurp/source/bridgefactory.cxx b/binaryurp/source/bridgefactory.cxx index 803899c8a7e3..d2fef4383c06 100644 --- a/binaryurp/source/bridgefactory.cxx +++ b/binaryurp/source/bridgefactory.cxx @@ -185,7 +185,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_bridge_BridgeFactory_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast< cppu::OWeakObject * >(new binaryurp::BridgeFactory)); + return cppu::acquire(new binaryurp::BridgeFactory); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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: */ diff --git a/connectivity/source/drivers/postgresql/pq_driver.cxx b/connectivity/source/drivers/postgresql/pq_driver.cxx index 87eb5682a2b2..2a5becec5149 100644 --- a/connectivity/source/drivers/postgresql/pq_driver.cxx +++ b/connectivity/source/drivers/postgresql/pq_driver.cxx @@ -143,7 +143,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* connectivity_pq_sdbc_driver_get_implementation( css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new pq_sdbc_driver::Driver(context))); + return cppu::acquire(new pq_sdbc_driver::Driver(context)); } diff --git a/dbaccess/source/core/dataaccess/databasecontext.cxx b/dbaccess/source/core/dataaccess/databasecontext.cxx index 4440af82457a..8e17e0440abc 100644 --- a/dbaccess/source/core/dataaccess/databasecontext.cxx +++ b/dbaccess/source/core/dataaccess/databasecontext.cxx @@ -751,7 +751,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_dba_ODatabaseContext_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new dbaccess::ODatabaseContext(context))); + return cppu::acquire(new dbaccess::ODatabaseContext(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/dbaccess/source/sdbtools/connection/connectiontools.cxx b/dbaccess/source/sdbtools/connection/connectiontools.cxx index 65db1c64907a..5dd408bac847 100644 --- a/dbaccess/source/sdbtools/connection/connectiontools.cxx +++ b/dbaccess/source/sdbtools/connection/connectiontools.cxx @@ -127,6 +127,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_dbaccess_ConnectionTools_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new sdbtools::ConnectionTools(context))); + return cppu::acquire(new sdbtools::ConnectionTools(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/desktop/source/splash/unxsplash.cxx b/desktop/source/splash/unxsplash.cxx index 0396a5bf5cbf..b218b75919b9 100644 --- a/desktop/source/splash/unxsplash.cxx +++ b/desktop/source/splash/unxsplash.cxx @@ -122,7 +122,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* desktop_UnxSplash_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new desktop::UnxSplashScreen())); + return cppu::acquire(new desktop::UnxSplashScreen()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/embeddedobj/source/commonembedding/xfactory.cxx b/embeddedobj/source/commonembedding/xfactory.cxx index 3f7cb8fde98f..c6f57aa9c643 100644 --- a/embeddedobj/source/commonembedding/xfactory.cxx +++ b/embeddedobj/source/commonembedding/xfactory.cxx @@ -368,7 +368,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* embeddedobj_OOoEmbeddedObjectFactory_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new OOoEmbeddedObjectFactory(context))); + return cppu::acquire(new OOoEmbeddedObjectFactory(context)); } @@ -412,6 +412,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* embeddedobj_OOoSpecialEmbeddedObjectFactory_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new OOoSpecialEmbeddedObjectFactory(context))); + return cppu::acquire(new OOoSpecialEmbeddedObjectFactory(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/embeddedobj/source/general/xcreator.cxx b/embeddedobj/source/general/xcreator.cxx index a54295895190..d057aeba4a1a 100644 --- a/embeddedobj/source/general/xcreator.cxx +++ b/embeddedobj/source/general/xcreator.cxx @@ -410,7 +410,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* embeddedobj_UNOEmbeddedObjectCreator_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new UNOEmbeddedObjectCreator(context))); + return cppu::acquire(new UNOEmbeddedObjectCreator(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/embeddedobj/source/msole/xdialogcreator.cxx b/embeddedobj/source/msole/xdialogcreator.cxx index 2d162cf9608e..226528516953 100644 --- a/embeddedobj/source/msole/xdialogcreator.cxx +++ b/embeddedobj/source/msole/xdialogcreator.cxx @@ -329,7 +329,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* embeddedobj_MSOLEDialogObjectCreator_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new MSOLEDialogObjectCreator(context))); + return cppu::acquire(new MSOLEDialogObjectCreator(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/embeddedobj/source/msole/xolefactory.cxx b/embeddedobj/source/msole/xolefactory.cxx index b18ba1153498..1a7728ef8cdd 100644 --- a/embeddedobj/source/msole/xolefactory.cxx +++ b/embeddedobj/source/msole/xolefactory.cxx @@ -245,7 +245,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* embeddedobj_OleEmbeddedObjectFactory_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new OleEmbeddedObjectFactory(context))); + return cppu::acquire(new OleEmbeddedObjectFactory(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx index 9dd229f32e0d..399062a530af 100644 --- a/eventattacher/source/eventattacher.cxx +++ b/eventattacher/source/eventattacher.cxx @@ -840,7 +840,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* eventattacher_EventAttacher( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new comp_EventAttacher::EventAttacherImpl(context))); + return cppu::acquire(new comp_EventAttacher::EventAttacherImpl(context)); } diff --git a/filter/source/config/cache/configflush.cxx b/filter/source/config/cache/configflush.cxx index f3f114b90ca2..5643e2d0ccf4 100644 --- a/filter/source/config/cache/configflush.cxx +++ b/filter/source/config/cache/configflush.cxx @@ -107,7 +107,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* filter_ConfigFlush_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new filter::config::ConfigFlush())); + return cppu::acquire(new filter::config::ConfigFlush()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/odfflatxml/OdfFlatXml.cxx b/filter/source/odfflatxml/OdfFlatXml.cxx index 082f701d125e..69deeb36ee71 100644 --- a/filter/source/odfflatxml/OdfFlatXml.cxx +++ b/filter/source/odfflatxml/OdfFlatXml.cxx @@ -254,7 +254,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* filter_OdfFlatXml_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new OdfFlatXml(context))); + return cppu::acquire(new OdfFlatXml(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx index 649c9785ba96..f53697c93a19 100644 --- a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx +++ b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx @@ -298,7 +298,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* filter_XSLTFilterDialog_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new XMLFilterDialogComponent(context))); + return cppu::acquire(new XMLFilterDialogComponent(context)); } diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx index f60e2c7b83fe..3163b631e9cd 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx @@ -803,7 +803,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* lingucomponent_Hyphenator_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new Hyphenator())); + return cppu::acquire(new Hyphenator()); } diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm index cba8dae08094..a01d70a3186d 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm @@ -636,7 +636,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* lingucomponent_MacSpellChecker_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new MacSpellChecker())); + return cppu::acquire(new MacSpellChecker()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 051b29c60d4e..c4bb53aa14b3 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -636,7 +636,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* lingucomponent_SpellChecker_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new SpellChecker())); + return cppu::acquire(new SpellChecker()); } diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index 4df96c3dff05..cd3363b9fbc7 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -571,7 +571,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* lingucomponent_Thesaurus_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new Thesaurus())); + return cppu::acquire(new Thesaurus()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index eb48e7e5311b..3fcb59f5d43c 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -783,7 +783,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* linguistic_DicList_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new DicList())); + return cppu::acquire(new DicList()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index fddbead8a452..692fa31353cb 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -1172,7 +1172,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* linguistic_GrammarCheckingIterator_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new GrammarCheckingIterator())); + return cppu::acquire(new GrammarCheckingIterator()); } diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index e5f3a4454645..a163b50dcad5 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -426,7 +426,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* linguistic_LinguProps_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new LinguProps())); + return cppu::acquire(new LinguProps()); } diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index dbf82dc60e0b..d289a7d0077b 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -1837,7 +1837,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* linguistic_LngSvcMgr_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new LngSvcMgr())); + return cppu::acquire(new LngSvcMgr()); } diff --git a/package/source/xstor/xfactory.cxx b/package/source/xstor/xfactory.cxx index 89e94dc4e3d3..192acb7fbeca 100644 --- a/package/source/xstor/xfactory.cxx +++ b/package/source/xstor/xfactory.cxx @@ -288,7 +288,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* package_OStorageFactory_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new OStorageFactory(context))); + return cppu::acquire(new OStorageFactory(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index a3b784f1b419..2a01ad60ce6f 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -116,47 +116,47 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* Calc_XMLOasisImporter_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast<cppu::OWeakObject*>( + return cppu::acquire( new ScXMLImport( context, "com.sun.star.comp.Calc.XMLOasisImporter", SvXMLImportFlags::ALL, - { "com.sun.star.comp.Calc.XMLOasisImporter" } ))); + { "com.sun.star.comp.Calc.XMLOasisImporter" } )); } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* Calc_XMLOasisMetaImporter_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast<cppu::OWeakObject*>( + return cppu::acquire( new ScXMLImport( context, "com.sun.star.comp.Calc.XMLOasisMetaImporter", SvXMLImportFlags::META, - { "com.sun.star.comp.Calc.XMLOasisMetaImporter" } ))); + { "com.sun.star.comp.Calc.XMLOasisMetaImporter" } )); } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* Calc_XMLOasisStylesImporter_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast<cppu::OWeakObject*>( + return cppu::acquire( new ScXMLImport( context, "com.sun.star.comp.Calc.XMLOasisStylesImporter", SvXMLImportFlags::STYLES|SvXMLImportFlags::AUTOSTYLES|SvXMLImportFlags::MASTERSTYLES|SvXMLImportFlags::FONTDECLS, - { "com.sun.star.comp.Calc.XMLOasisStylesImporter" } ))); + { "com.sun.star.comp.Calc.XMLOasisStylesImporter" } )); } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* Calc_XMLOasisContentImporter_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new ScXMLImport( + return cppu::acquire(new ScXMLImport( context, "com.sun.star.comp.Calc.XMLOasisContentImporter", SvXMLImportFlags::AUTOSTYLES|SvXMLImportFlags::CONTENT|SvXMLImportFlags::SCRIPTS|SvXMLImportFlags::FONTDECLS, - uno::Sequence< OUString > { "com.sun.star.comp.Calc.XMLOasisContentImporter" }))); + uno::Sequence< OUString > { "com.sun.star.comp.Calc.XMLOasisContentImporter" })); } @@ -164,12 +164,12 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* Calc_XMLOasisSettingsImporter_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast<cppu::OWeakObject*>( + return cppu::acquire( new ScXMLImport( context, "com.sun.star.comp.Calc.XMLOasisSettingsImporter", SvXMLImportFlags::SETTINGS, - { "com.sun.star.comp.Calc.XMLOasisSettingsImporter" } ))); + { "com.sun.star.comp.Calc.XMLOasisSettingsImporter" } )); } namespace { diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx index 097f8a982aed..cab5fc67026b 100644 --- a/sc/source/ui/unoobj/appluno.cxx +++ b/sc/source/ui/unoobj/appluno.cxx @@ -102,7 +102,7 @@ Calc_ScSpreadsheetSettings_get_implementation( { SolarMutexGuard aGuard; ScDLL::Init(); - return cppu::acquire(static_cast<cppu::OWeakObject*>(new ScSpreadsheetSettings())); + return cppu::acquire(new ScSpreadsheetSettings()); } diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index 3f7f4317eb55..c6f83dab0305 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -1054,7 +1054,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* scaddins_AnalysisAddIn_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new AnalysisAddIn(context))); + return cppu::acquire(new AnalysisAddIn(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx index 232fa9bb1d52..1828679e365e 100644 --- a/scaddins/source/datefunc/datefunc.cxx +++ b/scaddins/source/datefunc/datefunc.cxx @@ -90,7 +90,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* scaddins_ScaDateAddIn_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new ScaDateAddIn())); + return cppu::acquire(new ScaDateAddIn()); } diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx index 026487a4e472..b006ae3f9a04 100644 --- a/scaddins/source/pricing/pricing.cxx +++ b/scaddins/source/pricing/pricing.cxx @@ -91,7 +91,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* scaddins_ScaPricingAddIn_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new ScaPricingAddIn())); + return cppu::acquire(new ScaPricingAddIn()); } // "normal" service implementation diff --git a/shell/source/win32/simplemail/smplmailsuppl.cxx b/shell/source/win32/simplemail/smplmailsuppl.cxx index 8e6cdfcd2403..8fbd89b21c95 100644 --- a/shell/source/win32/simplemail/smplmailsuppl.cxx +++ b/shell/source/win32/simplemail/smplmailsuppl.cxx @@ -79,7 +79,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* shell_CSmplMailSuppl_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new CSmplMailSuppl())); + return cppu::acquire(new CSmplMailSuppl()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx index 7efacb98fb92..894b00f42637 100644 --- a/stoc/source/invocation_adapterfactory/iafactory.cxx +++ b/stoc/source/invocation_adapterfactory/iafactory.cxx @@ -874,7 +874,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* stoc_invocation_adapter_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new stoc_invadp::FactoryImpl(context))); + return cppu::acquire(new stoc_invadp::FactoryImpl(context)); } diff --git a/svl/source/fsstor/fsfactory.cxx b/svl/source/fsstor/fsfactory.cxx index 455e1b6ce590..b611ff5309d8 100644 --- a/svl/source/fsstor/fsfactory.cxx +++ b/svl/source/fsstor/fsfactory.cxx @@ -154,7 +154,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* svl_FSStorageFactory_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new FSStorageFactory(context))); + return cppu::acquire(new FSStorageFactory(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucb/source/core/cmdenv.cxx b/ucb/source/core/cmdenv.cxx index a768032f228d..0ea51438c920 100644 --- a/ucb/source/core/cmdenv.cxx +++ b/ucb/source/core/cmdenv.cxx @@ -111,7 +111,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_UcbCommandEnvironment_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new UcbCommandEnvironment())); + return cppu::acquire(new UcbCommandEnvironment()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx index ddf575cd9d5f..a6d8817fae2c 100644 --- a/ucb/source/core/ucb.cxx +++ b/ucb/source/core/ucb.cxx @@ -302,7 +302,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_UniversalContentBroker_get_implementation( css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new UniversalContentBroker(context))); + return cppu::acquire(new UniversalContentBroker(context)); } diff --git a/ucb/source/core/ucbprops.cxx b/ucb/source/core/ucbprops.cxx index 95d9d90e6c36..604b8983bc42 100644 --- a/ucb/source/core/ucbprops.cxx +++ b/ucb/source/core/ucbprops.cxx @@ -216,7 +216,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_UcbPropertiesManager_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new UcbPropertiesManager())); + return cppu::acquire(new UcbPropertiesManager()); } // XPropertySetInfo methods. diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx index d20378247fbd..bf86eba5fefc 100644 --- a/ucb/source/core/ucbstore.cxx +++ b/ucb/source/core/ucbstore.cxx @@ -176,7 +176,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_UcbStore_get_implementation( css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new UcbStore(context))); + return cppu::acquire(new UcbStore(context)); } diff --git a/ucb/source/sorter/sortdynres.cxx b/ucb/source/sorter/sortdynres.cxx index 437919e269da..5dc7694e107e 100644 --- a/ucb/source/sorter/sortdynres.cxx +++ b/ucb/source/sorter/sortdynres.cxx @@ -437,7 +437,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_SortedDynamicResultSetFactory_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new SortedDynamicResultSetFactory(context))); + return cppu::acquire(new SortedDynamicResultSetFactory(context)); } // SortedDynamicResultSetFactory methods. diff --git a/ucb/source/ucp/cmis/cmis_provider.cxx b/ucb/source/ucp/cmis/cmis_provider.cxx index bb84412bb97e..ded4483ecdfd 100644 --- a/ucb/source/ucp/cmis/cmis_provider.cxx +++ b/ucb/source/ucp/cmis/cmis_provider.cxx @@ -137,7 +137,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_cmis_ContentProvider_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new cmis::ContentProvider(context))); + return cppu::acquire(new cmis::ContentProvider(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucb/source/ucp/ext/ucpext_provider.cxx b/ucb/source/ucp/ext/ucpext_provider.cxx index d0a7993fbbf8..3befadd28a81 100644 --- a/ucb/source/ucp/ext/ucpext_provider.cxx +++ b/ucb/source/ucp/ext/ucpext_provider.cxx @@ -165,7 +165,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_ext_ContentProvider_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new ucb::ucp::ext::ContentProvider(context))); + return cppu::acquire(new ucb::ucp::ext::ContentProvider(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucb/source/ucp/ftp/ftpcontentprovider.cxx b/ucb/source/ucp/ftp/ftpcontentprovider.cxx index 9af1b97441e2..895711e0cfb4 100644 --- a/ucb/source/ucp/ftp/ftpcontentprovider.cxx +++ b/ucb/source/ucp/ftp/ftpcontentprovider.cxx @@ -239,7 +239,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_ftp_FTPContentProvider_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new FTPContentProvider(context))); + return cppu::acquire(new FTPContentProvider(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucb/source/ucp/gio/gio_provider.cxx b/ucb/source/ucp/gio/gio_provider.cxx index 4ac5ae6fffa6..3472fcfdf609 100644 --- a/ucb/source/ucp/gio/gio_provider.cxx +++ b/ucb/source/ucp/gio/gio_provider.cxx @@ -133,7 +133,7 @@ ucb_gio_ContentProvider_get_implementation( #if !GLIB_CHECK_VERSION(2,36,0) g_type_init(); #endif - return cppu::acquire(static_cast<cppu::OWeakObject*>(new gio::ContentProvider(context))); + return cppu::acquire(new gio::ContentProvider(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx index 04162051b46e..cfd4c5e500e5 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx @@ -212,7 +212,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_HierarchyDataSource_get_implementation( css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new HierarchyDataSource(context))); + return cppu::acquire(new HierarchyDataSource(context)); } diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx index 4922802f55fd..c6ca49541d90 100644 --- a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx +++ b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx @@ -116,7 +116,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_HierarchyContentProvider_get_implementation( css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new HierarchyContentProvider(context))); + return cppu::acquire(new HierarchyContentProvider(context)); } // XContentProvider methods. diff --git a/ucb/source/ucp/package/pkgprovider.cxx b/ucb/source/ucp/package/pkgprovider.cxx index 40ab9f635210..097eb09d44f3 100644 --- a/ucb/source/ucp/package/pkgprovider.cxx +++ b/ucb/source/ucp/package/pkgprovider.cxx @@ -266,7 +266,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_package_ContentProvider_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new ContentProvider(context))); + return cppu::acquire(new ContentProvider(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx index 0b9252922160..84d59df3d378 100644 --- a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx +++ b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx @@ -109,7 +109,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_tdoc_DocumentContentFactory_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new DocumentContentFactory(context))); + return cppu::acquire(new DocumentContentFactory(context)); } diff --git a/unotools/source/misc/ServiceDocumenter.cxx b/unotools/source/misc/ServiceDocumenter.cxx index b2decb6b9a53..39d4ba2907e4 100644 --- a/unotools/source/misc/ServiceDocumenter.cxx +++ b/unotools/source/misc/ServiceDocumenter.cxx @@ -104,6 +104,5 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* unotools_ServiceDocument_get_implementation( css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject *>( - Singleton::get(context).instance.get())); + return cppu::acquire(Singleton::get(context).instance.get()); } diff --git a/vcl/source/app/session.cxx b/vcl/source/app/session.cxx index a289c601d551..a1b37b27d464 100644 --- a/vcl/source/app/session.cxx +++ b/vcl/source/app/session.cxx @@ -393,7 +393,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_frame_VCLSessionManagerClient_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast< cppu::OWeakObject * >(new VCLSession)); + return cppu::acquire(new VCLSession); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/win/dtrans/WinClipboard.cxx b/vcl/win/dtrans/WinClipboard.cxx index 5ec56690b17e..2253c1691785 100644 --- a/vcl/win/dtrans/WinClipboard.cxx +++ b/vcl/win/dtrans/WinClipboard.cxx @@ -345,7 +345,7 @@ dtrans_CWinClipboard_get_implementation(css::uno::XComponentContext* context, } else { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new CWinClipboard(context, ""))); + return cppu::acquire(new CWinClipboard(context, "")); } } diff --git a/vcl/win/dtrans/ftransl.cxx b/vcl/win/dtrans/ftransl.cxx index 6bcf59066b81..45ab9a79ef64 100644 --- a/vcl/win/dtrans/ftransl.cxx +++ b/vcl/win/dtrans/ftransl.cxx @@ -540,6 +540,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* dtrans_CDataFormatTranslatorUNO_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new CDataFormatTranslatorUNO(context))); + return cppu::acquire(new CDataFormatTranslatorUNO(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/win/dtrans/generic_clipboard.cxx b/vcl/win/dtrans/generic_clipboard.cxx index 0394353601c8..23c26415d697 100644 --- a/vcl/win/dtrans/generic_clipboard.cxx +++ b/vcl/win/dtrans/generic_clipboard.cxx @@ -142,7 +142,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* dtrans_GenericClipboard_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new GenericClipboard())); + return cppu::acquire(new GenericClipboard()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/win/dtrans/source.cxx b/vcl/win/dtrans/source.cxx index 81275560a806..fdbb295e33da 100644 --- a/vcl/win/dtrans/source.cxx +++ b/vcl/win/dtrans/source.cxx @@ -297,7 +297,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* dtrans_DragSource_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new DragSource(context))); + return cppu::acquire(new DragSource(context)); } /** This function is called as extra thread from diff --git a/vcl/win/dtrans/target.cxx b/vcl/win/dtrans/target.cxx index 32cf95ffa647..8f48cd2d2bec 100644 --- a/vcl/win/dtrans/target.cxx +++ b/vcl/win/dtrans/target.cxx @@ -640,7 +640,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* dtrans_DropTarget_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new DropTarget(context))); + return cppu::acquire(new DropTarget(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index 1520235c26c6..c0e9d2900b77 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -711,8 +711,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_xml_input_SaxDocumentHandler_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new xmlscript::DocumentHandlerImpl( - Reference< xml::input::XRoot >(), false /* mt use */ ))); + return cppu::acquire(new xmlscript::DocumentHandlerImpl({}, false /* mt use */)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |