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

Gabor Kelemen (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 2 16:14:46 UTC 2019


 editeng/source/items/frmitems.cxx |    2 ++
 include/sfx2/dispatch.hxx         |    2 +-
 include/svl/intitem.hxx           |    2 +-
 include/svl/poolitem.hxx          |    2 +-
 include/svx/xgrad.hxx             |    2 +-
 sfx2/source/view/lokhelper.cxx    |    2 ++
 svl/source/items/intitem.cxx      |    1 +
 svl/source/items/poolitem.cxx     |    1 +
 svx/source/tbxctrls/itemwin.cxx   |    2 ++
 svx/source/xoutdev/xattr.cxx      |    1 +
 10 files changed, 13 insertions(+), 4 deletions(-)

New commits:
commit 807e075a6184f7afc01a127abe77391238ab4163
Author:     Gabor Kelemen <kelemen.gabor2 at nisz.hu>
AuthorDate: Fri Nov 29 16:48:21 2019 +0100
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Dec 2 17:13:44 2019 +0100

    tdf#42949 Replace property_tre/ptree.hpp with fw declaration header
    
    Similarly to commit fb1b461208e7a2760fa1c018db08606a9b3e435d replace
    new instances of boost/property_tree/ptree.hpp with forward declaration
    only header, as suggested by IWYU
    
    This reduces includebloat from 28.5G to 22.6G and cold clean build time from
    
    real    68m54,192s
    user    947m28,508s
    
    to
    
    real    62m50,689s
    user    861m33,131s
    
    on my machine.
    
    Change-Id: I5530f1b4b1a46d9159c752ad5af9a408215baf40
    Reviewed-on: https://gerrit.libreoffice.org/84175
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 37f1c1a04ff7..f74b53732ce2 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -90,6 +90,8 @@
 #include <o3tl/safeint.hxx>
 #include <vcl/GraphicLoader.hxx>
 
+#include <boost/property_tree/json_parser.hpp>
+
 using namespace ::editeng;
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::drawing;
diff --git a/include/sfx2/dispatch.hxx b/include/sfx2/dispatch.hxx
index 231d5eee1483..ee46d5c89909 100644
--- a/include/sfx2/dispatch.hxx
+++ b/include/sfx2/dispatch.hxx
@@ -29,7 +29,7 @@
 #include <o3tl/typed_flags_set.hxx>
 #include <o3tl/span.hxx>
 
-#include <boost/property_tree/ptree.hpp>
+#include <boost/property_tree/ptree_fwd.hpp>
 #include <vcl/menu.hxx>
 #include <initializer_list>
 
diff --git a/include/svl/intitem.hxx b/include/svl/intitem.hxx
index c43add2013d7..5bf9785cbf43 100644
--- a/include/svl/intitem.hxx
+++ b/include/svl/intitem.hxx
@@ -22,7 +22,7 @@
 
 #include <svl/svldllapi.h>
 #include <svl/cintitem.hxx>
-#include <boost/property_tree/json_parser.hpp>
+#include <boost/property_tree/ptree_fwd.hpp>
 
 
 class SVL_DLLPUBLIC SfxByteItem: public CntByteItem
diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx
index dd74806464cd..d3b95e0cf9f5 100644
--- a/include/svl/poolitem.hxx
+++ b/include/svl/poolitem.hxx
@@ -29,7 +29,7 @@
 #include <svl/svldllapi.h>
 #include <svl/typedwhich.hxx>
 #include <tools/mapunit.hxx>
-#include <boost/property_tree/json_parser.hpp>
+#include <boost/property_tree/ptree_fwd.hpp>
 
 class IntlWrapper;
 
diff --git a/include/svx/xgrad.hxx b/include/svx/xgrad.hxx
index 268b0e06253b..3c9b2b4572a4 100644
--- a/include/svx/xgrad.hxx
+++ b/include/svx/xgrad.hxx
@@ -23,7 +23,7 @@
 #include <tools/color.hxx>
 #include <svx/svxdllapi.h>
 #include <com/sun/star/awt/GradientStyle.hpp>
-#include <boost/property_tree/json_parser.hpp>
+#include <boost/property_tree/ptree_fwd.hpp>
 
 class Gradient;
 
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index acb4fea6f49a..c38739f69e90 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -30,6 +30,8 @@
 
 #include <shellimpl.hxx>
 
+#include <boost/property_tree/json_parser.hpp>
+
 using namespace com::sun::star;
 
 int SfxLokHelper::createView()
diff --git a/svl/source/items/intitem.cxx b/svl/source/items/intitem.cxx
index 6bf9b2ef8300..940a40c7950d 100644
--- a/svl/source/items/intitem.cxx
+++ b/svl/source/items/intitem.cxx
@@ -24,6 +24,7 @@
 #include <tools/bigint.hxx>
 #include <svl/metitem.hxx>
 #include <libxml/xmlwriter.h>
+#include <boost/property_tree/json_parser.hpp>
 
 
 //  class SfxByteItem
diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx
index daa676a9e458..272beceb5927 100644
--- a/svl/source/items/poolitem.cxx
+++ b/svl/source/items/poolitem.cxx
@@ -24,6 +24,7 @@
 #include <osl/diagnose.h>
 #include <libxml/xmlwriter.h>
 #include <typeinfo>
+#include <boost/property_tree/json_parser.hpp>
 
 //////////////////////////////////////////////////////////////////////////////
 // list of classes derived from SfxPoolItem
diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx
index 66314e592f21..b986842765a4 100644
--- a/svx/source/tbxctrls/itemwin.cxx
+++ b/svx/source/tbxctrls/itemwin.cxx
@@ -48,6 +48,8 @@
 #include <svtools/colorcfg.hxx>
 #include <svtools/unitconv.hxx>
 
+#include <boost/property_tree/json_parser.hpp>
+
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::frame;
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx
index 404d2eb9b359..2c50c3e6f263 100644
--- a/svx/source/xoutdev/xattr.cxx
+++ b/svx/source/xoutdev/xattr.cxx
@@ -91,6 +91,7 @@
 #include <svx/svxids.hrc>
 #include <string>
 
+#include <boost/property_tree/json_parser.hpp>
 #include <libxml/xmlwriter.h>
 
 using namespace ::com::sun::star;


More information about the Libreoffice-commits mailing list