[Libreoffice-commits] core.git: include/svx svx/source

Gabor Kelemen (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 8 08:25:00 UTC 2019


 include/svx/svdotable.hxx      |    2 +-
 svx/source/svdraw/svdmrkv.cxx  |    2 ++
 svx/source/table/svdotable.cxx |    1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit c6e7a70d2afea8b9641c515bf40c1e4c97e54bf5
Author:     Gabor Kelemen <kelemen.gabor2 at nisz.hu>
AuthorDate: Sun Nov 3 23:44:15 2019 +0100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Nov 8 09:23:49 2019 +0100

    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 at collabora.com>

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;


More information about the Libreoffice-commits mailing list