diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-05-12 02:20:12 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-05-20 10:33:01 +0200 |
commit | 62605b16b0fd6a4a9429b8b185242f91eae67581 (patch) | |
tree | 72dde847e0603d4e954eff3de35a936c896b209a /stoc/source/uriproc | |
parent | de91b7772d18b3584b48f47e21adc142c6289cf0 (diff) |
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 <vmiklos@collabora.com>
Diffstat (limited to 'stoc/source/uriproc')
7 files changed, 14 insertions, 26 deletions
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 <string_view> #include <com/sun/star/lang/XServiceInfo.hpp> -#include <com/sun/star/uno/Exception.hpp> -#include <com/sun/star/uno/Reference.hxx> -#include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/XComponentContext.hpp> -#include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/uri/XExternalUriReferenceTranslator.hpp> #include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> @@ -41,6 +36,9 @@ #include <rtl/ustring.hxx> #include <sal/types.h> +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 <osl/diagnose.h> #include <osl/mutex.hxx> -#include <rtl/string.h> #include <rtl/ustrbuf.hxx> #include <rtl/ustring.hxx> #include <sal/types.h> 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 <com/sun/star/uno/RuntimeException.hpp> #include <osl/mutex.hxx> #include <rtl/ustring.hxx> #include <sal/types.h> 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 <algorithm> #include <cassert> #include <cstdlib> -#include <exception> #include <vector> #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> 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 <sal/config.h> -#include <exception> - -#include <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/uno/Reference.hxx> -#include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/XComponentContext.hpp> -#include <com/sun/star/uno/XInterface.hpp> -#include <com/sun/star/uri/XUriReference.hpp> #include <com/sun/star/uri/XUriSchemeParser.hpp> #include <com/sun/star/uri/XVndSunStarExpandUrlReference.hpp> #include <com/sun/star/util/XMacroExpander.hpp> @@ -39,12 +32,15 @@ #include <rtl/textenc.h> #include <rtl/uri.h> #include <rtl/uri.hxx> -#include <rtl/ustring.h> #include <rtl/ustring.hxx> #include <sal/types.h> #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 <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/uno/Reference.hxx> -#include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/XComponentContext.hpp> -#include <com/sun/star/uno/XInterface.hpp> -#include <com/sun/star/uri/XUriReference.hpp> #include <com/sun/star/uri/XUriSchemeParser.hpp> #include <com/sun/star/uri/XVndSunStarScriptUrlReference.hpp> #include <cppuhelper/implbase.hxx> @@ -39,9 +35,12 @@ #include <rtl/ustring.hxx> #include <sal/types.h> -#include <exception> #include <string_view> +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 <com/sun/star/lang/XServiceInfo.hpp> -#include <com/sun/star/uno/Exception.hpp> #include <com/sun/star/uno/Reference.hxx> -#include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/XComponentContext.hpp> -#include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/uri/UriReferenceFactory.hpp> #include <com/sun/star/uri/XUriReference.hpp> #include <com/sun/star/uri/XVndSunStarPkgUrlReferenceFactory.hpp> #include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> #include <cppuhelper/weak.hxx> -#include <rtl/string.h> #include <rtl/textenc.h> #include <rtl/uri.h> #include <rtl/uri.hxx> @@ -39,6 +34,9 @@ #include <osl/diagnose.h> #include <sal/types.h> +namespace com::sun::star::uno { class XComponentContext; } +namespace com::sun::star::uno { class XInterface; } + namespace { class Factory: |