summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2020-07-01 21:24:37 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-08-03 10:23:10 +0200
commit32090b018d9ff81659a4c9ed41c64109ebebe4fc (patch)
tree2448a8097551d84cd5f201a803a4ad1731e600db /include/tools
parentda09a3cf14ea2c7690b98ec32639125087bcf18f (diff)
tdf#42949 Fix IWYU warnings in include/[t-x]*/*hxx
Recheck after 7-0 branchoff Also drop the now unused file include/vcl/field.hxx Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I9e54c82f50d1e02a0f99858939cac999fc66f7de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99261 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/UnitConversion.hxx2
-rw-r--r--include/tools/fract.hxx1
-rw-r--r--include/tools/gen.hxx1
-rw-r--r--include/tools/json_writer.hxx1
-rw-r--r--include/tools/mapunit.hxx3
5 files changed, 2 insertions, 6 deletions
diff --git a/include/tools/UnitConversion.hxx b/include/tools/UnitConversion.hxx
index 2585fecbb590..028e5dcecfae 100644
--- a/include/tools/UnitConversion.hxx
+++ b/include/tools/UnitConversion.hxx
@@ -10,6 +10,8 @@
#pragma once
+#include <sal/types.h>
+
constexpr sal_Int64 convertTwipToMm100(sal_Int64 n)
{
return (n >= 0) ? (n * 127 + 36) / 72 : (n * 127 - 36) / 72;
diff --git a/include/tools/fract.hxx b/include/tools/fract.hxx
index ed1f5f0be649..7caf9c6a93f5 100644
--- a/include/tools/fract.hxx
+++ b/include/tools/fract.hxx
@@ -21,7 +21,6 @@
#include <sal/types.h>
#include <tools/toolsdllapi.h>
-#include <memory>
#include <ostream>
#include <type_traits>
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index e069717bbd53..4f6927c62f0b 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -25,7 +25,6 @@
#include <algorithm>
#include <ostream>
#include <config_options.h>
-#include <cassert>
class SvStream;
namespace rtl
diff --git a/include/tools/json_writer.hxx b/include/tools/json_writer.hxx
index 3b27a18833f3..10e1a3a7aafc 100644
--- a/include/tools/json_writer.hxx
+++ b/include/tools/json_writer.hxx
@@ -10,7 +10,6 @@
#include <tools/toolsdllapi.h>
#include <rtl/ustring.hxx>
-#include <algorithm>
namespace rtl
{
diff --git a/include/tools/mapunit.hxx b/include/tools/mapunit.hxx
index 6112bc7ef461..fcaa03bcdb8c 100644
--- a/include/tools/mapunit.hxx
+++ b/include/tools/mapunit.hxx
@@ -20,9 +20,6 @@
#ifndef INCLUDED_TOOLS_MAPUNIT_HXX
#define INCLUDED_TOOLS_MAPUNIT_HXX
-#include <sal/types.h>
-#include <tools/UnitConversion.hxx>
-
enum class MapUnit
{
Map100thMM, Map10thMM, MapMM, MapCM,