summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-10-25 12:17:34 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-10-25 17:47:42 +0200
commitfb1b461208e7a2760fa1c018db08606a9b3e435d (patch)
tree8604b1e0de61751f8060060e3b1df0f9081cca12 /vcl/source/window
parenta8b1699ca9c7e8c43eff79467451fd1fcb4fde9b (diff)
tdf#42949 Fix IWYU warning in include/vcl/window.hxx
The boost/property_tree/ptree.hpp added in commit 75b8db7fa7344a679d3c5dbdc8c5bd4228cdbc7c turns out to be rather expensive: it adds about 900 kB per compilation unit and window.hxx is included in about 2600 compilation units Replacing it with forward declaration header has reduced total includebloat from 26.1 Gb to about 22.7 Change-Id: I797608b54a62a5838c7a5d47355fb6bd736ad36c Reviewed-on: https://gerrit.libreoffice.org/81500 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/layout.cxx1
-rw-r--r--vcl/source/window/toolbox2.cxx1
-rw-r--r--vcl/source/window/window.cxx1
3 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index ce0d15afddab..75da9e20b9e5 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -19,6 +19,7 @@
#include <messagedialog.hxx>
#include <window.h>
#include <boost/multi_array.hpp>
+#include <boost/property_tree/ptree.hpp>
#include <vcl/vclmedit.hxx>
#include <sal/log.hxx>
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 56f687dac2f8..201e44213d49 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -21,6 +21,7 @@
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
+#include <boost/property_tree/ptree.hpp>
#include <vcl/svapp.hxx>
#include <vcl/idle.hxx>
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index b09158b9b16c..c6434c537eb8 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -66,6 +66,7 @@
#include <unotools/configmgr.hxx>
#include <osl/diagnose.h>
#include <tools/debug.hxx>
+#include <boost/property_tree/ptree.hpp>
#include <cassert>
#include <typeinfo>