diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-11-28 13:17:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-12-01 13:58:41 +0100 |
commit | 32b4936c9944111382d2491d99fc375b31d76723 (patch) | |
tree | 4fe4cd24998bd8764bb871a4ec25432e7356ce31 | |
parent | 62d2d59f5fdb0068226165aac62c093c8174a674 (diff) |
Don't use boost::optional forward declarations
...in preparation for wholesale replacement of boost::optional with
o3tl::optional (which will be a using declaration for either std::optional or
boost::optional, hence can't be forward-declared easily)
Change-Id: I031ed1812a0c939f37253f7753e358f1ad9153a3
Reviewed-on: https://gerrit.libreoffice.org/84126
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | include/comphelper/unwrapargs.hxx | 6 | ||||
-rw-r--r-- | include/editeng/editeng.hxx | 4 | ||||
-rw-r--r-- | include/filter/msfilter/svdfppt.hxx | 6 | ||||
-rw-r--r-- | include/sax/tools/converter.hxx | 6 | ||||
-rw-r--r-- | include/toolkit/controls/unocontrols.hxx | 3 | ||||
-rw-r--r-- | include/unotools/historyoptions.hxx | 3 | ||||
-rw-r--r-- | include/vcl/settings.hxx | 7 | ||||
-rw-r--r-- | sc/inc/sheetevents.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/xml/XMLExportDataPilot.hxx | 6 | ||||
-rw-r--r-- | sc/source/ui/inc/RandomNumberGeneratorDialog.hxx | 6 |
10 files changed, 28 insertions, 21 deletions
diff --git a/include/comphelper/unwrapargs.hxx b/include/comphelper/unwrapargs.hxx index 77ef0ace16c1..7c1d26d3a0aa 100644 --- a/include/comphelper/unwrapargs.hxx +++ b/include/comphelper/unwrapargs.hxx @@ -20,14 +20,16 @@ #ifndef INCLUDED_COMPHELPER_UNWRAPARGS_HXX #define INCLUDED_COMPHELPER_UNWRAPARGS_HXX +#include <sal/config.h> + +#include <boost/optional.hpp> + #include <rtl/ustrbuf.hxx> #include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/lang/IllegalArgumentException.hpp> #include <cppu/unotype.hxx> -namespace boost { template <class T> class optional; } - namespace comphelper { /// @internal diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 368fae70a633..12b4b0b28398 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -22,6 +22,9 @@ #include <memory> #include <vector> + +#include <boost/optional.hpp> + #include <com/sun/star/uno/Reference.h> #include <com/sun/star/i18n/WordType.hpp> #include <com/sun/star/i18n/CharacterIteratorMode.hpp> @@ -41,7 +44,6 @@ #include <vcl/errcode.hxx> #include <functional> -namespace boost { template <class T> class optional; } template <typename Arg, typename Ret> class Link; namespace com { namespace sun { namespace star { diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx index efe56823e1c9..51bdd1917e35 100644 --- a/include/filter/msfilter/svdfppt.hxx +++ b/include/filter/msfilter/svdfppt.hxx @@ -25,6 +25,8 @@ #include <memory> #include <vector> +#include <boost/optional.hpp> + #include <com/sun/star/uno/Reference.hxx> #include <editeng/eeitem.hxx> #include <editeng/flditem.hxx> @@ -46,10 +48,6 @@ #include <vcl/graph.hxx> #include <salhelper/simplereferenceobject.hxx> -namespace boost { - template <class T> class optional; -} - namespace com { namespace sun { namespace star { namespace awt { struct Size; } namespace drawing { class XShape; } diff --git a/include/sax/tools/converter.hxx b/include/sax/tools/converter.hxx index a372360f6d8d..967c395433ff 100644 --- a/include/sax/tools/converter.hxx +++ b/include/sax/tools/converter.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_SAX_TOOLS_CONVERTER_HXX #define INCLUDED_SAX_TOOLS_CONVERTER_HXX +#include <sal/config.h> + +#include <boost/optional.hpp> + #include <sax/saxdllapi.h> #include <sal/types.h> @@ -28,8 +32,6 @@ #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 { class Any; diff --git a/include/toolkit/controls/unocontrols.hxx b/include/toolkit/controls/unocontrols.hxx index 4bf493915b2d..5ea17a412915 100644 --- a/include/toolkit/controls/unocontrols.hxx +++ b/include/toolkit/controls/unocontrols.hxx @@ -54,7 +54,8 @@ #include <memory> #include <vector> -namespace boost { template <class T> class optional; } +#include <boost/optional.hpp> + namespace com { namespace sun { namespace star { namespace graphic { class XGraphic; } } } } namespace com { namespace sun { namespace star { namespace graphic { class XGraphicObject; } } } } diff --git a/include/unotools/historyoptions.hxx b/include/unotools/historyoptions.hxx index 9279f864cfdc..87ce484533c3 100644 --- a/include/unotools/historyoptions.hxx +++ b/include/unotools/historyoptions.hxx @@ -27,8 +27,9 @@ #include <unotools/options.hxx> #include <memory> +#include <boost/optional.hpp> + namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } } -namespace boost { template <class T> class optional; } // The method GetList() returns a list of property values. // Use follow defines to separate values by names. diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx index 75894432f05d..1f879b188c18 100644 --- a/include/vcl/settings.hxx +++ b/include/vcl/settings.hxx @@ -29,15 +29,12 @@ #include <memory> #include <vector> +#include <boost/optional.hpp> + class BitmapEx; class LanguageTag; class SvtSysLocale; -namespace boost -{ - template<typename T> class optional; -} - class LocaleDataWrapper; struct ImplMouseData; struct ImplMiscData; diff --git a/sc/inc/sheetevents.hxx b/sc/inc/sheetevents.hxx index e205ed1d801e..3fb0e28d1568 100644 --- a/sc/inc/sheetevents.hxx +++ b/sc/inc/sheetevents.hxx @@ -23,7 +23,7 @@ #include <rtl/ustring.hxx> #include <memory> -namespace boost { template <class T> class optional; } +#include <boost/optional.hpp> enum class ScSheetEventId { FOCUS, UNFOCUS, SELECT, DOUBLECLICK, RIGHTCLICK, CHANGE, CALCULATE, COUNT, diff --git a/sc/source/filter/xml/XMLExportDataPilot.hxx b/sc/source/filter/xml/XMLExportDataPilot.hxx index a08262eedf54..2fe6602a9fa7 100644 --- a/sc/source/filter/xml/XMLExportDataPilot.hxx +++ b/sc/source/filter/xml/XMLExportDataPilot.hxx @@ -20,13 +20,15 @@ #ifndef INCLUDED_SC_SOURCE_FILTER_XML_XMLEXPORTDATAPILOT_HXX #define INCLUDED_SC_SOURCE_FILTER_XML_XMLEXPORTDATAPILOT_HXX +#include <sal/config.h> + +#include <boost/optional.hpp> + #include <rtl/ustring.hxx> #include <global.hxx> #include <xmloff/xmltoken.hxx> #include <unotools/textsearch.hxx> -namespace boost { template <class T> class optional; } - class ScXMLExport; class ScDocument; class ScDPSaveDimension; diff --git a/sc/source/ui/inc/RandomNumberGeneratorDialog.hxx b/sc/source/ui/inc/RandomNumberGeneratorDialog.hxx index 00a109b311a4..f965ded0e605 100644 --- a/sc/source/ui/inc/RandomNumberGeneratorDialog.hxx +++ b/sc/source/ui/inc/RandomNumberGeneratorDialog.hxx @@ -11,12 +11,14 @@ #ifndef INCLUDED_SC_SOURCE_UI_INC_RANDOMNUMBERGENERATORDIALOG_HXX #define INCLUDED_SC_SOURCE_UI_INC_RANDOMNUMBERGENERATORDIALOG_HXX +#include <sal/config.h> + +#include <boost/optional.hpp> + #include <address.hxx> #include "anyrefdg.hxx" #include "viewdata.hxx" -namespace boost { template <typename T> class optional; } - class ScRandomNumberGeneratorDialog : public ScAnyRefDlgController { public: |