diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2018-08-30 21:42:54 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-08-31 09:55:21 +0200 |
commit | bf01403479096eb3e0d8c7d7dc09390570a1f262 (patch) | |
tree | 9cd168e00caa45afe53086b22f95d5a43ed11c4a /include | |
parent | 91cb01b1e6f898b5a1c1934f60b2b43653a12044 (diff) |
tdf#42949 Fix IWYU warnings: boost/optional in include/
Found with bin/find-unneeded-includes a few low hanging
boost/optional headers.
This gets us about 75M includebloat reduction; still much to go
Change-Id: I5c737631767970f9145609aad298a5d11e3fed65
Reviewed-on: https://gerrit.libreoffice.org/59840
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/unwrapargs.hxx | 3 | ||||
-rw-r--r-- | include/editeng/editeng.hxx | 3 | ||||
-rw-r--r-- | include/sax/tools/converter.hxx | 3 | ||||
-rw-r--r-- | include/toolkit/controls/unocontrols.hxx | 2 | ||||
-rw-r--r-- | include/unotools/historyoptions.hxx | 3 |
5 files changed, 8 insertions, 6 deletions
diff --git a/include/comphelper/unwrapargs.hxx b/include/comphelper/unwrapargs.hxx index afea437bcf7e..a7f7f0001898 100644 --- a/include/comphelper/unwrapargs.hxx +++ b/include/comphelper/unwrapargs.hxx @@ -25,7 +25,8 @@ #include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/lang/IllegalArgumentException.hpp> #include <cppu/unotype.hxx> -#include <boost/optional.hpp> + +namespace boost { template <class T> class optional; } namespace comphelper { diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index a94cf2abd0fb..3803822628ee 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -41,9 +41,10 @@ #include <o3tl/typed_flags_set.hxx> #include <svl/languageoptions.hxx> #include <vcl/errcode.hxx> -#include <boost/optional.hpp> #include <functional> +namespace boost { template <class T> class optional; } + namespace com { namespace sun { namespace star { namespace linguistic2 { class XSpellChecker1; diff --git a/include/sax/tools/converter.hxx b/include/sax/tools/converter.hxx index c7fe12f4c100..a8880d962920 100644 --- a/include/sax/tools/converter.hxx +++ b/include/sax/tools/converter.hxx @@ -22,8 +22,6 @@ #include <sax/saxdllapi.h> -#include <boost/optional/optional.hpp> - #include <sal/types.h> #include <rtl/ustring.hxx> #include <rtl/ustrbuf.hxx> @@ -31,6 +29,7 @@ #include <com/sun/star/util/MeasureUnit.hpp> #include <tools/color.hxx> +namespace boost { template <class T> class optional; } namespace com { namespace sun { namespace star { namespace uno { diff --git a/include/toolkit/controls/unocontrols.hxx b/include/toolkit/controls/unocontrols.hxx index e794147f9f2d..c7fd44c520f7 100644 --- a/include/toolkit/controls/unocontrols.hxx +++ b/include/toolkit/controls/unocontrols.hxx @@ -58,7 +58,7 @@ #include <memory> #include <vector> -#include <boost/optional.hpp> +namespace boost { template <class T> class optional; } class ImageHelper { diff --git a/include/unotools/historyoptions.hxx b/include/unotools/historyoptions.hxx index df9030a7e8fa..57b7d50da92c 100644 --- a/include/unotools/historyoptions.hxx +++ b/include/unotools/historyoptions.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_UNOTOOLS_HISTORYOPTIONS_HXX #define INCLUDED_UNOTOOLS_HISTORYOPTIONS_HXX -#include <boost/optional.hpp> #include <unotools/unotoolsdllapi.h> #include <sal/types.h> #include <com/sun/star/uno/Sequence.h> @@ -29,6 +28,8 @@ #include <unotools/options.hxx> #include <memory> +namespace boost { template <class T> class optional; } + // The method GetList() returns a list of property values. // Use follow defines to separate values by names. |