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 /canvas | |
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 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_canvashelper_text.cxx | 1 | ||||
-rw-r--r-- | canvas/source/directx/dx_textlayout_drawhelper.cxx | 1 | ||||
-rw-r--r-- | canvas/source/opengl/ogl_canvashelper.cxx | 1 | ||||
-rw-r--r-- | canvas/source/vcl/spritecanvashelper.cxx | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper_text.cxx b/canvas/source/cairo/cairo_canvashelper_text.cxx index e86d6aadc132..fc0d70947b26 100644 --- a/canvas/source/cairo/cairo_canvashelper_text.cxx +++ b/canvas/source/cairo/cairo_canvashelper_text.cxx @@ -21,6 +21,7 @@ #include <com/sun/star/rendering/TextDirection.hpp> +#include <rtl/math.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> #include <tools/diagnose_ex.h> #include <vcl/canvastools.hxx> diff --git a/canvas/source/directx/dx_textlayout_drawhelper.cxx b/canvas/source/directx/dx_textlayout_drawhelper.cxx index 71c4c7e3a904..ea628079e7ff 100644 --- a/canvas/source/directx/dx_textlayout_drawhelper.cxx +++ b/canvas/source/directx/dx_textlayout_drawhelper.cxx @@ -28,6 +28,7 @@ #include <com/sun/star/rendering/XCanvasFont.hpp> #include <comphelper/scopeguard.hxx> #include <i18nlangtag/languagetag.hxx> +#include <rtl/math.hxx> #include <tools/color.hxx> #include <tools/diagnose_ex.h> #include <tools/poly.hxx> diff --git a/canvas/source/opengl/ogl_canvashelper.cxx b/canvas/source/opengl/ogl_canvashelper.cxx index 4095650791e9..6dcf933f0723 100644 --- a/canvas/source/opengl/ogl_canvashelper.cxx +++ b/canvas/source/opengl/ogl_canvashelper.cxx @@ -19,6 +19,7 @@ #include <basegfx/utils/canvastools.hxx> #include <com/sun/star/rendering/CompositeOperation.hpp> #include <rtl/crc.h> +#include <rtl/math.hxx> #include <tools/diagnose_ex.h> #include <vcl/font.hxx> #include <vcl/metric.hxx> diff --git a/canvas/source/vcl/spritecanvashelper.cxx b/canvas/source/vcl/spritecanvashelper.cxx index d7fe7d37be0a..552bf2c6c514 100644 --- a/canvas/source/vcl/spritecanvashelper.cxx +++ b/canvas/source/vcl/spritecanvashelper.cxx @@ -23,6 +23,7 @@ #include <boost/cast.hpp> #include <basegfx/range/b2drectangle.hxx> +#include <rtl/math.hxx> #include <tools/diagnose_ex.h> #include <vcl/canvastools.hxx> #include <vcl/outdev.hxx> |