From 62605b16b0fd6a4a9429b8b185242f91eae67581 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sun, 12 May 2019 02:20:12 +0200 Subject: tdf#42949 Fix IWYU warnings in stoc/ Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I3c1b091d30449243faec3f875e6f0ac6d8b34259 Reviewed-on: https://gerrit.libreoffice.org/72214 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- stoc/source/uriproc/ExternalUriReferenceTranslator.cxx | 8 +++----- stoc/source/uriproc/UriReference.cxx | 1 - stoc/source/uriproc/UriReference.hxx | 1 - stoc/source/uriproc/UriReferenceFactory.cxx | 1 - .../uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx | 12 ++++-------- .../uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx | 9 ++++----- stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx | 8 +++----- 7 files changed, 14 insertions(+), 26 deletions(-) (limited to 'stoc/source/uriproc') diff --git a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx index c945c1a92c78..5aec7c3595b2 100644 --- a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx +++ b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx @@ -22,12 +22,7 @@ #include #include -#include -#include -#include #include -#include -#include #include #include #include @@ -41,6 +36,9 @@ #include #include +namespace com::sun::star::uno { class XInterface; } +namespace com::sun::star::uno { class XComponentContext; } + namespace { class Translator: diff --git a/stoc/source/uriproc/UriReference.cxx b/stoc/source/uriproc/UriReference.cxx index 18ada1d3cf0b..28202b7aeac3 100644 --- a/stoc/source/uriproc/UriReference.cxx +++ b/stoc/source/uriproc/UriReference.cxx @@ -22,7 +22,6 @@ #include #include -#include #include #include #include diff --git a/stoc/source/uriproc/UriReference.hxx b/stoc/source/uriproc/UriReference.hxx index 2c671133bfab..fe2f9bb38d19 100644 --- a/stoc/source/uriproc/UriReference.hxx +++ b/stoc/source/uriproc/UriReference.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_STOC_SOURCE_URIPROC_URIREFERENCE_HXX #define INCLUDED_STOC_SOURCE_URIPROC_URIREFERENCE_HXX -#include #include #include #include diff --git a/stoc/source/uriproc/UriReferenceFactory.cxx b/stoc/source/uriproc/UriReferenceFactory.cxx index 402da59393f3..2359bc31b403 100644 --- a/stoc/source/uriproc/UriReferenceFactory.cxx +++ b/stoc/source/uriproc/UriReferenceFactory.cxx @@ -22,7 +22,6 @@ #include #include #include -#include #include #include diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx index e632dd98566c..828ff085510a 100644 --- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx +++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx @@ -19,16 +19,9 @@ #include -#include - -#include #include #include -#include #include -#include -#include -#include #include #include #include @@ -39,12 +32,15 @@ #include #include #include -#include #include #include #include "UriReference.hxx" +namespace com::sun::star::uno { class XComponentContext; } +namespace com::sun::star::uno { class XInterface; } +namespace com::sun::star::uri { class XUriReference; } + namespace { bool parseSchemeSpecificPart(OUString const & part) { diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx index 7fdc07b922e7..f12a74f3bdb8 100644 --- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx +++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx @@ -22,11 +22,7 @@ #include #include #include -#include #include -#include -#include -#include #include #include #include @@ -39,9 +35,12 @@ #include #include -#include #include +namespace com::sun::star::uno { class XComponentContext; } +namespace com::sun::star::uno { class XInterface; } +namespace com::sun::star::uri { class XUriReference; } + namespace { int getHexWeight(sal_Unicode c) { diff --git a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx index 64580feaefba..8d1ea79b1901 100644 --- a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx +++ b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx @@ -18,19 +18,14 @@ */ #include -#include #include -#include #include -#include -#include #include #include #include #include #include #include -#include #include #include #include @@ -39,6 +34,9 @@ #include #include +namespace com::sun::star::uno { class XComponentContext; } +namespace com::sun::star::uno { class XInterface; } + namespace { class Factory: -- cgit