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 /chart2 | |
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 'chart2')
-rw-r--r-- | chart2/qa/extras/chart2dump/chart2dump.cxx | 1 | ||||
-rw-r--r-- | chart2/qa/extras/charttest.hxx | 1 | ||||
-rw-r--r-- | chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx | 1 | ||||
-rw-r--r-- | chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx | 1 | ||||
-rw-r--r-- | chart2/source/tools/ExplicitCategoriesProvider.cxx | 1 | ||||
-rw-r--r-- | chart2/source/tools/ThreeDHelper.cxx | 1 | ||||
-rw-r--r-- | chart2/source/view/axes/Tickmarks.cxx | 1 | ||||
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 1 | ||||
-rw-r--r-- | chart2/source/view/main/VLegend.cxx | 1 |
9 files changed, 8 insertions, 1 deletions
diff --git a/chart2/qa/extras/chart2dump/chart2dump.cxx b/chart2/qa/extras/chart2dump/chart2dump.cxx index 50f4610e84af..680744bab5a1 100644 --- a/chart2/qa/extras/chart2dump/chart2dump.cxx +++ b/chart2/qa/extras/chart2dump/chart2dump.cxx @@ -20,6 +20,7 @@ #include <editeng/unoprnms.hxx> #include <test/xmltesttools.hxx> #include <rtl/ustring.hxx> +#include <rtl/ustrbuf.hxx> #include <fstream> diff --git a/chart2/qa/extras/charttest.hxx b/chart2/qa/extras/charttest.hxx index 60a526be0b8a..89c91ae3905f 100644 --- a/chart2/qa/extras/charttest.hxx +++ b/chart2/qa/extras/charttest.hxx @@ -29,6 +29,7 @@ #include <com/sun/star/frame/XStorable.hpp> #include <unotools/tempfile.hxx> +#include <rtl/math.hxx> #include <com/sun/star/chart2/XAnyDescriptionAccess.hpp> #include <com/sun/star/chart2/XChartDocument.hpp> diff --git a/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx b/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx index 38a1f4292a67..a931151e1c2c 100644 --- a/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx @@ -48,6 +48,7 @@ #include <tools/diagnose_ex.h> #include <vcl/graph.hxx> #include <oox/helper/containerhelper.hxx> +#include <rtl/math.hxx> #include <svx/tabline.hxx> diff --git a/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx b/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx index eec17e7adb89..21ac2411bf0c 100644 --- a/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx @@ -36,6 +36,7 @@ #include <svx/tabline.hxx> #include <tools/diagnose_ex.h> #include <vcl/graph.hxx> +#include <rtl/math.hxx> #include <com/sun/star/chart/DataLabelPlacement.hpp> #include <com/sun/star/chart2/AxisType.hpp> diff --git a/chart2/source/tools/ExplicitCategoriesProvider.cxx b/chart2/source/tools/ExplicitCategoriesProvider.cxx index e75fe8376a40..c0b232240710 100644 --- a/chart2/source/tools/ExplicitCategoriesProvider.cxx +++ b/chart2/source/tools/ExplicitCategoriesProvider.cxx @@ -29,6 +29,7 @@ #include <com/sun/star/chart2/AxisType.hpp> #include <o3tl/safeint.hxx> +#include <rtl/math.hxx> #include <tools/diagnose_ex.h> namespace chart diff --git a/chart2/source/tools/ThreeDHelper.cxx b/chart2/source/tools/ThreeDHelper.cxx index fd45dc44e257..fe788397d40d 100644 --- a/chart2/source/tools/ThreeDHelper.cxx +++ b/chart2/source/tools/ThreeDHelper.cxx @@ -31,6 +31,7 @@ #include <com/sun/star/drawing/ShadeMode.hpp> #include <tools/diagnose_ex.h> #include <tools/helpers.hxx> +#include <rtl/math.hxx> namespace chart { diff --git a/chart2/source/view/axes/Tickmarks.cxx b/chart2/source/view/axes/Tickmarks.cxx index e1dc3953bd11..8332f01ff9a2 100644 --- a/chart2/source/view/axes/Tickmarks.cxx +++ b/chart2/source/view/axes/Tickmarks.cxx @@ -26,7 +26,6 @@ #include <com/sun/star/chart2/AxisType.hpp> using namespace ::com::sun::star; -using namespace ::rtl::math; using ::basegfx::B2DVector; namespace chart { diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index c9fa8ebd4d30..f33f696a898d 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -54,6 +54,7 @@ #include <comphelper/scopeguard.hxx> #include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> +#include <rtl/math.hxx> #include <unotools/streamwrap.hxx> #include <svx/svdpage.hxx> #include <svx/unopage.hxx> diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx index d7928b08e756..facfe388fa42 100644 --- a/chart2/source/view/main/VLegend.cxx +++ b/chart2/source/view/main/VLegend.cxx @@ -39,6 +39,7 @@ #include <com/sun/star/chart2/XFormattedString2.hpp> #include <com/sun/star/chart2/data/XPivotTableDataProvider.hpp> #include <com/sun/star/chart2/data/PivotTableFieldEntry.hpp> +#include <rtl/math.hxx> #include <svl/languageoptions.hxx> #include <tools/diagnose_ex.h> |