From e12fa18c69cbe1f441e972f3519d33638f15658e Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sun, 19 Apr 2020 20:36:58 +0200 Subject: tdf#42949 Simplify use of rtl::math::approxEqual in include/basegfx/ Turns out we can save about 500Mb of preprocessor input if we use rtl_math_approxEqual from rtl/math.h instead of its C++ wrapper rtl::math::approxEqual from rtl/math.hxx and manage the fallout accordingly. Before: bin/includebloat.awk | head sum total bytes included (excluding system headers): 19017296671 After: $ bin/includebloat.awk | head sum total bytes included (excluding system headers): 18535432672 Change-Id: I1691171f3a309405a7099882ad9989d147f59118 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92508 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- basegfx/source/color/bcolortools.cxx | 1 + basegfx/source/polygon/b2dpolypolygontools.cxx | 1 + basegfx/source/polygon/b3dpolygon.cxx | 1 + basegfx/source/polygon/b3dpolygontools.cxx | 1 + basegfx/source/range/b2drangeclipper.cxx | 1 + 5 files changed, 5 insertions(+) (limited to 'basegfx/source') diff --git a/basegfx/source/color/bcolortools.cxx b/basegfx/source/color/bcolortools.cxx index 0ff808bc8367..727b9c781774 100644 --- a/basegfx/source/color/bcolortools.cxx +++ b/basegfx/source/color/bcolortools.cxx @@ -20,6 +20,7 @@ #include #include #include +#include namespace basegfx::utils { diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx index b763aef823c2..74cdf23241d3 100644 --- a/basegfx/source/polygon/b2dpolypolygontools.cxx +++ b/basegfx/source/polygon/b2dpolypolygontools.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include #include diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx index e3aa78d9bf3f..9be2f882c526 100644 --- a/basegfx/source/polygon/b3dpolygon.cxx +++ b/basegfx/source/polygon/b3dpolygon.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include #include diff --git a/basegfx/source/polygon/b3dpolygontools.cxx b/basegfx/source/polygon/b3dpolygontools.cxx index a0349a156626..bf982f9c3e22 100644 --- a/basegfx/source/polygon/b3dpolygontools.cxx +++ b/basegfx/source/polygon/b3dpolygontools.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include namespace basegfx::utils diff --git a/basegfx/source/range/b2drangeclipper.cxx b/basegfx/source/range/b2drangeclipper.cxx index 3fe16599c290..9cf24d53428c 100644 --- a/basegfx/source/range/b2drangeclipper.cxx +++ b/basegfx/source/range/b2drangeclipper.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include -- cgit