diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-10 09:41:13 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-10 08:22:26 +0100 |
commit | 96388e5e809a48573970df9b6b2649517a08447f (patch) | |
tree | c686721e917a0a1bb5cf27b3468bd80b3c62b416 /filter | |
parent | 24dd6c5f9861340fafccad9504a99a939cbba0a6 (diff) |
Drop 'static_cast<cppu::OWeakObject*>' syntactic noise
... where the object is created in-place, and its type is known
Change-Id: Ifabfcf2f3ad0d60152f14e8d970c1faa42115288
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112256
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/config/cache/configflush.cxx | 2 | ||||
-rw-r--r-- | filter/source/odfflatxml/OdfFlatXml.cxx | 2 | ||||
-rw-r--r-- | filter/source/xsltdialog/xmlfilterdialogcomponent.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
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)); } |