diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2022-01-24 00:17:20 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2022-01-30 16:10:57 +0100 |
commit | 7b5193e2ae9eceba881163787b98c90f2310056d (patch) | |
tree | 8bbd62c065d2ba8c67d41c5236b2fcb77136f1c2 /package/source/zipapi | |
parent | 026e2f437e969d75209ed05211e7f02349035b98 (diff) |
Recheck modules [o-r]* with IWYU
See tdf#42949 for motivation
Change-Id: I6b4b05a5e59b256653c4caf5297fffd601b45083
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128845
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'package/source/zipapi')
-rw-r--r-- | package/source/zipapi/ByteChucker.cxx | 2 | ||||
-rw-r--r-- | package/source/zipapi/ByteGrabber.cxx | 2 | ||||
-rw-r--r-- | package/source/zipapi/MemoryByteGrabber.hxx | 4 | ||||
-rw-r--r-- | package/source/zipapi/XBufferedThreadedStream.cxx | 3 | ||||
-rw-r--r-- | package/source/zipapi/XBufferedThreadedStream.hxx | 7 | ||||
-rw-r--r-- | package/source/zipapi/XUnbufferedStream.cxx | 2 | ||||
-rw-r--r-- | package/source/zipapi/XUnbufferedStream.hxx | 2 | ||||
-rw-r--r-- | package/source/zipapi/ZipFile.cxx | 13 | ||||
-rw-r--r-- | package/source/zipapi/ZipOutputEntry.cxx | 3 | ||||
-rw-r--r-- | package/source/zipapi/ZipOutputStream.cxx | 3 |
10 files changed, 16 insertions, 25 deletions
diff --git a/package/source/zipapi/ByteChucker.cxx b/package/source/zipapi/ByteChucker.cxx index af534e58e22e..6c5994aa6a2f 100644 --- a/package/source/zipapi/ByteChucker.cxx +++ b/package/source/zipapi/ByteChucker.cxx @@ -18,13 +18,11 @@ */ #include <ByteChucker.hxx> -#include <PackageConstants.hxx> #include <com/sun/star/io/XSeekable.hpp> #include <com/sun/star/io/XOutputStream.hpp> using namespace ::com::sun::star::io; using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::lang; ByteChucker::ByteChucker(Reference<XOutputStream> const & xOstream) : xStream(xOstream) diff --git a/package/source/zipapi/ByteGrabber.cxx b/package/source/zipapi/ByteGrabber.cxx index 89ce1af5634b..b58a7087f468 100644 --- a/package/source/zipapi/ByteGrabber.cxx +++ b/package/source/zipapi/ByteGrabber.cxx @@ -19,8 +19,10 @@ #include <ByteGrabber.hxx> #include <sal/log.hxx> +#include <com/sun/star/io/IOException.hpp> #include <com/sun/star/io/XSeekable.hpp> #include <com/sun/star/io/XInputStream.hpp> +#include <com/sun/star/lang/IllegalArgumentException.hpp> using namespace ::com::sun::star; diff --git a/package/source/zipapi/MemoryByteGrabber.hxx b/package/source/zipapi/MemoryByteGrabber.hxx index 9f52204ead67..8dcf7f067064 100644 --- a/package/source/zipapi/MemoryByteGrabber.hxx +++ b/package/source/zipapi/MemoryByteGrabber.hxx @@ -19,9 +19,7 @@ #ifndef INCLUDED_PACKAGE_SOURCE_ZIPAPI_MEMORYBYTEGRABBER_HXX #define INCLUDED_PACKAGE_SOURCE_ZIPAPI_MEMORYBYTEGRABBER_HXX -#include <com/sun/star/io/XInputStream.hpp> -#include <com/sun/star/io/XSeekable.hpp> -#include <string.h> +#include <com/sun/star/uno/Sequence.h> class MemoryByteGrabber final { diff --git a/package/source/zipapi/XBufferedThreadedStream.cxx b/package/source/zipapi/XBufferedThreadedStream.cxx index e2f963bf88c1..d3bf995d9073 100644 --- a/package/source/zipapi/XBufferedThreadedStream.cxx +++ b/package/source/zipapi/XBufferedThreadedStream.cxx @@ -8,9 +8,6 @@ */ #include "XBufferedThreadedStream.hxx" -#include <com/sun/star/packages/zip/ZipIOException.hpp> -#include <cppuhelper/exc_hlp.hxx> -#include <sal/log.hxx> using namespace css::uno; diff --git a/package/source/zipapi/XBufferedThreadedStream.hxx b/package/source/zipapi/XBufferedThreadedStream.hxx index 272414c37504..ad5d3b0ce116 100644 --- a/package/source/zipapi/XBufferedThreadedStream.hxx +++ b/package/source/zipapi/XBufferedThreadedStream.hxx @@ -10,10 +10,13 @@ #ifndef INCLUDED_PACKAGE_SOURCE_ZIPAPI_XBUFFEREDTHREADEDSTREAM_HXX #define INCLUDED_PACKAGE_SOURCE_ZIPAPI_XBUFFEREDTHREADEDSTREAM_HXX +#include <com/sun/star/io/XInputStream.hpp> + +#include <cppuhelper/implbase.hxx> +#include <rtl/ref.hxx> #include <salhelper/thread.hxx> -#include "XUnbufferedStream.hxx" + #include <queue> -#include <vector> #include <mutex> #include <condition_variable> diff --git a/package/source/zipapi/XUnbufferedStream.cxx b/package/source/zipapi/XUnbufferedStream.cxx index 6fe09c1162c1..56f864a2df05 100644 --- a/package/source/zipapi/XUnbufferedStream.cxx +++ b/package/source/zipapi/XUnbufferedStream.cxx @@ -23,7 +23,6 @@ #include "XUnbufferedStream.hxx" #include <EncryptionData.hxx> -#include <PackageConstants.hxx> #include <ZipFile.hxx> #include <EncryptedDataHeader.hxx> #include <algorithm> @@ -31,7 +30,6 @@ #include <osl/diagnose.h> #include <osl/mutex.hxx> -#include <sal/log.hxx> #include <tools/diagnose_ex.h> using namespace ::com::sun::star; diff --git a/package/source/zipapi/XUnbufferedStream.hxx b/package/source/zipapi/XUnbufferedStream.hxx index 9cb97b1c35c5..277f356ee18c 100644 --- a/package/source/zipapi/XUnbufferedStream.hxx +++ b/package/source/zipapi/XUnbufferedStream.hxx @@ -19,10 +19,8 @@ #ifndef INCLUDED_PACKAGE_SOURCE_ZIPAPI_XUNBUFFEREDSTREAM_HXX #define INCLUDED_PACKAGE_SOURCE_ZIPAPI_XUNBUFFEREDSTREAM_HXX -#include <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/io/XSeekable.hpp> #include <com/sun/star/io/XInputStream.hpp> -#include <com/sun/star/io/XOutputStream.hpp> #include <com/sun/star/xml/crypto/XCipherContext.hpp> #include <comphelper/refcountedmutex.hxx> diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index 3e9d24858df1..dba57c1f200c 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -17,13 +17,16 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <com/sun/star/lang/XMultiServiceFactory.hpp> -#include <com/sun/star/ucb/XProgressHandler.hpp> +#include <com/sun/star/io/BufferSizeExceededException.hpp> +#include <com/sun/star/io/NotConnectedException.hpp> +#include <com/sun/star/lang/IllegalArgumentException.hpp> +#include <com/sun/star/packages/NoEncryptionException.hpp> +#include <com/sun/star/packages/WrongPasswordException.hpp> #include <com/sun/star/packages/zip/ZipConstants.hpp> +#include <com/sun/star/packages/zip/ZipException.hpp> +#include <com/sun/star/packages/zip/ZipIOException.hpp> #include <com/sun/star/xml/crypto/XCipherContext.hpp> #include <com/sun/star/xml/crypto/XDigestContext.hpp> -#include <com/sun/star/xml/crypto/XCipherContextSupplier.hpp> -#include <com/sun/star/xml/crypto/XDigestContextSupplier.hpp> #include <com/sun/star/xml/crypto/CipherID.hpp> #include <com/sun/star/xml/crypto/DigestID.hpp> #include <com/sun/star/xml/crypto/NSSInitializer.hpp> @@ -36,7 +39,6 @@ #include <algorithm> #include <iterator> -#include <memory> #include <vector> #include "blowfishcontext.hxx" @@ -55,7 +57,6 @@ using namespace com::sun::star; using namespace com::sun::star::io; using namespace com::sun::star::uno; -using namespace com::sun::star::ucb; using namespace com::sun::star::lang; using namespace com::sun::star::packages; using namespace com::sun::star::packages::zip; diff --git a/package/source/zipapi/ZipOutputEntry.cxx b/package/source/zipapi/ZipOutputEntry.cxx index 734840865a14..897ea6212430 100644 --- a/package/source/zipapi/ZipOutputEntry.cxx +++ b/package/source/zipapi/ZipOutputEntry.cxx @@ -21,8 +21,6 @@ #include <com/sun/star/io/TempFile.hpp> #include <com/sun/star/packages/zip/ZipConstants.hpp> -#include <com/sun/star/ucb/SimpleFileAccess.hpp> -#include <com/sun/star/ucb/XSimpleFileAccess3.hpp> #include <osl/diagnose.h> @@ -30,7 +28,6 @@ #include <ThreadedDeflater.hxx> #include <ZipEntry.hxx> #include <ZipFile.hxx> -#include <ZipPackageBuffer.hxx> #include <ZipPackageStream.hxx> #include <algorithm> diff --git a/package/source/zipapi/ZipOutputStream.cxx b/package/source/zipapi/ZipOutputStream.cxx index 6bf3bd33f49e..a4d67fcfd54a 100644 --- a/package/source/zipapi/ZipOutputStream.cxx +++ b/package/source/zipapi/ZipOutputStream.cxx @@ -20,10 +20,9 @@ #include <ZipOutputStream.hxx> #include <com/sun/star/packages/zip/ZipConstants.hpp> +#include <com/sun/star/io/IOException.hpp> #include <com/sun/star/io/XInputStream.hpp> -#include <com/sun/star/io/XOutputStream.hpp> #include <comphelper/storagehelper.hxx> -#include <cppuhelper/exc_hlp.hxx> #include <osl/time.h> #include <osl/thread.hxx> |