summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-11-03 23:44:15 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-11-08 09:23:49 +0100
commitc6e7a70d2afea8b9641c515bf40c1e4c97e54bf5 (patch)
treef55a88d63247609fc6fab71e6682aecfa608f845
parent7b1667d9500d541f57a8a4401ec1fc8bd238fa29 (diff)
tdf#42949 Fix IWYU warning in include/svx/svdotable.hxx
The boost/property_tree/json_parser.hpp added in commit 0285492a45e9cc19c26e14dcdf297bcc491da4d2 is somewhat expensive. Replacing it with forward declaration header - similar to commit fb1b461208e7a2760fa1c018db08606a9b3e435d shaves off about 80Mb of includebloat Change-Id: I5055834b691718eec2a5ebbfc4f1cffbdea96aae Reviewed-on: https://gerrit.libreoffice.org/81972 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--include/svx/svdotable.hxx2
-rw-r--r--svx/source/svdraw/svdmrkv.cxx2
-rw-r--r--svx/source/table/svdotable.cxx1
3 files changed, 4 insertions, 1 deletions
diff --git a/include/svx/svdotable.hxx b/include/svx/svdotable.hxx
index 62d1cb4ad860..0dab80d0c0d7 100644
--- a/include/svx/svdotable.hxx
+++ b/include/svx/svdotable.hxx
@@ -26,7 +26,7 @@
#include <rtl/ref.hxx>
#include <svx/svdotext.hxx>
#include <svx/svxdllapi.h>
-#include <boost/property_tree/json_parser.hpp>
+#include <boost/property_tree/ptree_fwd.hpp>
class SvStream;
class SfxStyleSheet;
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index a3fce9ec2821..6e357739727b 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -68,6 +68,8 @@
#include <com/sun/star/view/XSelectionSupplier.hpp>
+#include <boost/property_tree/json_parser.hpp>
+
using namespace com::sun::star;
// Migrate Marking of Objects, Points and GluePoints
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index c197b715bee6..98a093a65c1e 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -60,6 +60,7 @@
#include <cppuhelper/implbase.hxx>
#include <libxml/xmlwriter.h>
+#include <boost/property_tree/json_parser.hpp>
using ::com::sun::star::uno::Any;
using ::com::sun::star::uno::Reference;