diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2020-04-19 20:36:58 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-04-22 15:36:50 +0200 |
commit | e12fa18c69cbe1f441e972f3519d33638f15658e (patch) | |
tree | 323c049c122220ad5dc91fc6d1c3dfe613793ff9 /cppcanvas/source/mtfrenderer | |
parent | 0b48cee16d459d27ebd090d008ec9398c86fc581 (diff) |
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 <vmiklos@collabora.com>
Diffstat (limited to 'cppcanvas/source/mtfrenderer')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 1 | ||||
-rw-r--r-- | cppcanvas/source/mtfrenderer/mtftools.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index c856a237f8bc..77554ef40fb7 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -44,6 +44,7 @@ #include <basegfx/tuple/b2dtuple.hxx> #include <basegfx/polygon/b2dpolygonclipper.hxx> #include <canvas/canvastools.hxx> +#include <rtl/ustrbuf.hxx> #include <vcl/canvastools.hxx> #include <vcl/gdimtf.hxx> #include <vcl/metaact.hxx> diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx index f043162ee9f2..c5d36eb00652 100644 --- a/cppcanvas/source/mtfrenderer/mtftools.cxx +++ b/cppcanvas/source/mtfrenderer/mtftools.cxx @@ -26,6 +26,7 @@ #include <basegfx/range/b2drectangle.hxx> #include <basegfx/vector/b2dvector.hxx> #include <canvas/canvastools.hxx> +#include <rtl/math.hxx> #include <vcl/canvastools.hxx> #include <vcl/virdev.hxx> #include <vcl/metric.hxx> |