summaryrefslogtreecommitdiff
path: root/unoxml/source/xpath
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-12-23 19:20:07 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-01-09 10:33:17 +0100
commit1141f72f927068f700854c4f311993551587f608 (patch)
tree5365e30b7d5a33879d5205b21cfc07be42e03378 /unoxml/source/xpath
parentf31accb05a1c7064a7e586ffec8f283b6ff4787e (diff)
tdf#42949 Fix IWYU warnings in unoxml/
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I4457153dc4f2bfe932488b1c6e3af3cff58cb150 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85787 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'unoxml/source/xpath')
-rw-r--r--unoxml/source/xpath/nodelist.hxx4
-rw-r--r--unoxml/source/xpath/xpathapi.cxx3
-rw-r--r--unoxml/source/xpath/xpathapi.hxx4
-rw-r--r--unoxml/source/xpath/xpathobject.hxx3
4 files changed, 6 insertions, 8 deletions
diff --git a/unoxml/source/xpath/nodelist.hxx b/unoxml/source/xpath/nodelist.hxx
index c119eaaf03b9..e1be7861a937 100644
--- a/unoxml/source/xpath/nodelist.hxx
+++ b/unoxml/source/xpath/nodelist.hxx
@@ -28,11 +28,11 @@
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/xml/dom/XNode.hpp>
#include <com/sun/star/xml/dom/XNodeList.hpp>
-#include <com/sun/star/xml/xpath/XXPathObject.hpp>
-#include <libxml/tree.h>
#include <libxml/xpath.h>
+#include "../dom/document.hxx"
+
#include <memory>
namespace DOM {
diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx
index 5d3e6d8c6189..d36aa1164437 100644
--- a/unoxml/source/xpath/xpathapi.cxx
+++ b/unoxml/source/xpath/xpathapi.cxx
@@ -27,10 +27,11 @@
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
+#include <com/sun/star/xml/xpath/XPathException.hpp>
+
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
-#include "nodelist.hxx"
#include "xpathobject.hxx"
#include <node.hxx>
diff --git a/unoxml/source/xpath/xpathapi.hxx b/unoxml/source/xpath/xpathapi.hxx
index 1bc99b50a762..77cf0dba7660 100644
--- a/unoxml/source/xpath/xpathapi.hxx
+++ b/unoxml/source/xpath/xpathapi.hxx
@@ -31,16 +31,12 @@
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/uno/XInterface.hpp>
-#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/xml/xpath/XXPathAPI.hpp>
#include <com/sun/star/xml/dom/XNode.hpp>
#include <com/sun/star/xml/dom/XNodeList.hpp>
#include <com/sun/star/xml/xpath/XXPathObject.hpp>
#include <com/sun/star/xml/xpath/XXPathExtension.hpp>
-#include <com/sun/star/xml/xpath/Libxml2ExtensionHandle.hpp>
-#include <com/sun/star/xml/xpath/XPathException.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
namespace XPath
diff --git a/unoxml/source/xpath/xpathobject.hxx b/unoxml/source/xpath/xpathobject.hxx
index 41787c3bb705..8e20bbc55399 100644
--- a/unoxml/source/xpath/xpathobject.hxx
+++ b/unoxml/source/xpath/xpathobject.hxx
@@ -22,7 +22,6 @@
#include <memory>
-#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <sal/types.h>
@@ -34,6 +33,8 @@
#include <com/sun/star/xml/dom/XNodeList.hpp>
#include <com/sun/star/xml/xpath/XXPathObject.hpp>
+#include "../dom/document.hxx"
+
namespace DOM {
class CDocument;
}