From 96388e5e809a48573970df9b6b2649517a08447f Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Wed, 10 Mar 2021 09:41:13 +0300 Subject: Drop 'static_cast' 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 --- scaddins/source/analysis/analysis.cxx | 2 +- scaddins/source/datefunc/datefunc.cxx | 2 +- scaddins/source/pricing/pricing.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'scaddins') 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 const&) { - return cppu::acquire(static_cast(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 const&) { - return cppu::acquire(static_cast(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 const&) { - return cppu::acquire(static_cast(new ScaPricingAddIn())); + return cppu::acquire(new ScaPricingAddIn()); } // "normal" service implementation -- cgit