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 /sc | |
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 'sc')
-rw-r--r-- | sc/qa/unit/ucalc_sort.cxx | 1 | ||||
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 1 | ||||
-rw-r--r-- | sc/source/filter/excel/xlchart.cxx | 1 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlbodyi.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaformat.cxx | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc_sort.cxx b/sc/qa/unit/ucalc_sort.cxx index b611924da5b6..4dc3897421fc 100644 --- a/sc/qa/unit/ucalc_sort.cxx +++ b/sc/qa/unit/ucalc_sort.cxx @@ -32,6 +32,7 @@ #include <editeng/editobj.hxx> #include <svx/svdocirc.hxx> #include <svx/svdpage.hxx> +#include <rtl/math.hxx> void Test::testSort() { diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index 8c32b58d16e3..f23a040325fc 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -69,6 +69,7 @@ #include <comphelper/string.hxx> #include <comphelper/types.hxx> #include <sal/macros.h> +#include <rtl/math.hxx> #include <tools/diagnose_ex.h> #include <svl/zforlist.hxx> #include <vcl/svapp.hxx> diff --git a/sc/source/filter/excel/xlchart.cxx b/sc/source/filter/excel/xlchart.cxx index 75e37d8ff256..8d271665ce82 100644 --- a/sc/source/filter/excel/xlchart.cxx +++ b/sc/source/filter/excel/xlchart.cxx @@ -36,6 +36,7 @@ #include <com/sun/star/chart2/Symbol.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <rtl/math.hxx> #include <sal/macros.h> #include <svl/itemset.hxx> #include <svx/xfillit0.hxx> diff --git a/sc/source/filter/xml/xmlbodyi.cxx b/sc/source/filter/xml/xmlbodyi.cxx index 36d9b85472a6..da459b48a19a 100644 --- a/sc/source/filter/xml/xmlbodyi.cxx +++ b/sc/source/filter/xml/xmlbodyi.cxx @@ -49,6 +49,7 @@ #include <comphelper/servicehelper.hxx> #include <sal/types.h> #include <sal/log.hxx> +#include <rtl/math.hxx> #include <memory> diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 927674911384..f892851a087c 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -26,6 +26,7 @@ #include <vcl/decoview.hxx> #include <vcl/event.hxx> #include <vcl/settings.hxx> +#include <rtl/math.hxx> #include <tools/wintypes.hxx> #include <unotools/charclass.hxx> diff --git a/sc/source/ui/vba/vbaformat.cxx b/sc/source/ui/vba/vbaformat.cxx index 6f65b444df3c..46e29a8229b8 100644 --- a/sc/source/ui/vba/vbaformat.cxx +++ b/sc/source/ui/vba/vbaformat.cxx @@ -36,6 +36,7 @@ #include <com/sun/star/frame/XModel.hpp> #include <basic/sberrors.hxx> +#include <rtl/math.hxx> #include "excelvbahelper.hxx" #include "vbaborders.hxx" |