summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2020-11-29 22:26:58 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-12-01 14:56:43 +0100
commit107399d684bae9e58f5e4020f15eb8a689f1db82 (patch)
treed4acfa1fab53bf624a245f893fcca6221b56230c /scaddins
parent9c94bae963ef5019f6ca0394d076b1288969aa53 (diff)
tdf#42949 Fix new IWYU warnings in directories s*
Except recently checked sc, sd, svx, sw Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ice1b86628e4f22a39f307b9c5fa567b6ab9d5acb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106917 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/IwyuFilter_scaddins.yaml13
-rw-r--r--scaddins/source/analysis/analysis.cxx3
-rw-r--r--scaddins/source/analysis/analysisdefs.hxx3
-rw-r--r--scaddins/source/analysis/financial.cxx1
-rw-r--r--scaddins/source/datefunc/datefunc.cxx1
-rw-r--r--scaddins/source/pricing/pricing.cxx4
6 files changed, 17 insertions, 8 deletions
diff --git a/scaddins/IwyuFilter_scaddins.yaml b/scaddins/IwyuFilter_scaddins.yaml
index 09df2aa5ebcc..963ffe7d007c 100644
--- a/scaddins/IwyuFilter_scaddins.yaml
+++ b/scaddins/IwyuFilter_scaddins.yaml
@@ -8,6 +8,10 @@ excludelist:
- com/sun/star/sheet/addin/XAnalysis.hpp
- com/sun/star/sheet/XAddIn.hpp
- com/sun/star/sheet/XCompatibilityNames.hpp
+ scaddins/source/analysis/analysisdefs.hxx:
+ # Needed for macros
+ - com/sun/star/lang/IllegalArgumentException.hpp
+ - cmath
scaddins/source/datefunc/datefunc.hxx:
# Base class needs complete type
- com/sun/star/lang/XServiceInfo.hpp
@@ -23,3 +27,12 @@ excludelist:
- com/sun/star/sheet/addin/XPricingFunctions.hpp
- com/sun/star/sheet/XAddIn.hpp
- com/sun/star/sheet/XCompatibilityNames.hpp
+ scaddins/source/pricing/black_scholes.cxx:
+ # Needed for rtl::math::erfc
+ - rtl/math.hxx
+ scaddins/source/analysis/bessel.cxx:
+ # Needed for rtl::math::sin / cos
+ - rtl/math.hxx
+ scaddins/source/pricing/pricing.cxx:
+ # Needed for std::isfinite
+ - cmath
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx
index 9db4d55fee6f..6fb4e9b958ff 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -20,12 +20,9 @@
#include "analysisdefs.hxx"
#include "analysis.hxx"
#include "bessel.hxx"
-#include <cppuhelper/factory.hxx>
-#include <comphelper/processfactory.hxx>
#include <comphelper/random.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/weak.hxx>
-#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <o3tl/any.hxx>
#include <rtl/math.hxx>
#include <sal/macros.h>
diff --git a/scaddins/source/analysis/analysisdefs.hxx b/scaddins/source/analysis/analysisdefs.hxx
index 4ee96be9ae0d..fec9ccc3fb87 100644
--- a/scaddins/source/analysis/analysisdefs.hxx
+++ b/scaddins/source/analysis/analysisdefs.hxx
@@ -20,6 +20,9 @@
#ifndef INCLUDED_SCADDINS_SOURCE_ANALYSIS_ANALYSISDEFS_HXX
#define INCLUDED_SCADDINS_SOURCE_ANALYSIS_ANALYSISDEFS_HXX
+#include <com/sun/star/lang/IllegalArgumentException.hpp>
+#include <cmath>
+
#define CHK_Freq ( nFreq != 1 && nFreq != 2 && nFreq != 4 )
#define CHK_FINITE(d) if( !std::isfinite( d ) ) throw css::lang::IllegalArgumentException()
#define RETURN_FINITE(d) if( !std::isfinite( d ) ) throw css::lang::IllegalArgumentException(); return d;
diff --git a/scaddins/source/analysis/financial.cxx b/scaddins/source/analysis/financial.cxx
index cf41b268eed7..a10696bfdefb 100644
--- a/scaddins/source/analysis/financial.cxx
+++ b/scaddins/source/analysis/financial.cxx
@@ -21,7 +21,6 @@
#include "analysis.hxx"
#include "analysishelper.hxx"
#include <o3tl/temporary.hxx>
-#include <rtl/math.hxx>
using namespace sca::analysis;
diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx
index 995db6235300..232fa9bb1d52 100644
--- a/scaddins/source/datefunc/datefunc.cxx
+++ b/scaddins/source/datefunc/datefunc.cxx
@@ -24,7 +24,6 @@
#include <cppuhelper/factory.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/weak.hxx>
-#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <rtl/ustrbuf.hxx>
#include <unotools/resmgr.hxx>
#include <i18nlangtag/languagetag.hxx>
diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx
index 569e396c43da..026487a4e472 100644
--- a/scaddins/source/pricing/pricing.cxx
+++ b/scaddins/source/pricing/pricing.cxx
@@ -30,10 +30,8 @@
#include <cppuhelper/factory.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/weak.hxx>
-#include <com/sun/star/lang/XSingleServiceFactory.hpp>
-#include <iostream>
#include <algorithm>
-#include <rtl/math.hxx>
+#include <cmath>
#include <unotools/resmgr.hxx>
#include <i18nlangtag/languagetag.hxx>