Kaydet (Commit) bf014034 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Miklos Vajna

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: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 91cb01b1
......@@ -34,7 +34,7 @@
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/io/XSeekable.hpp>
#include <stdio.h>
#include <boost/optional.hpp>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
......
......@@ -44,7 +44,7 @@
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
#include <unotools/tempfile.hxx>
#include <boost/optional.hpp>
using namespace ::dp_misc;
using namespace ::com::sun::star;
......
......@@ -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 {
......
......@@ -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;
......
......@@ -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 {
......
......@@ -58,7 +58,7 @@
#include <memory>
#include <vector>
#include <boost/optional.hpp>
namespace boost { template <class T> class optional; }
class ImageHelper
{
......
......@@ -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.
......
......@@ -27,6 +27,7 @@
#include <com/sun/star/util/Duration.hpp>
#include <com/sun/star/util/Time.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <boost/optional.hpp>
#include <rtl/ustrbuf.hxx>
#include <rtl/math.hxx>
......
......@@ -78,6 +78,7 @@
#include <sfx2/docfile.hxx>
#include <sax/tools/converter.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <boost/optional.hpp>
#include <utility>
#include <vector>
......
......@@ -37,6 +37,7 @@
#include <comphelper/configurationhelper.hxx>
#include <comphelper/processfactory.hxx>
#include <tools/diagnose_ex.h>
#include <boost/optional.hpp>
using namespace ::std;
using namespace ::utl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment