summaryrefslogtreecommitdiffstats
path: root/io/source/stm
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-03-19 01:54:54 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-04-25 11:28:15 +0200
commitf9b8c2d57b10de6344ff5555c0b09947484a586b (patch)
treed9144cfe83ad88a62752503ef71c903e93fe6b7b /io/source/stm
parentcalc: extra unittest for rows autoheight on load (diff)
downloadcore-f9b8c2d57b10de6344ff5555c0b09947484a586b.tar.gz
core-f9b8c2d57b10de6344ff5555c0b09947484a586b.zip
tdf#42949 Fix IWYU warnings in io/
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I16dfde335816053e5821d5e975b27b6e4819b1a8 Reviewed-on: https://gerrit.libreoffice.org/71135 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'io/source/stm')
-rw-r--r--io/source/stm/odata.cxx1
-rw-r--r--io/source/stm/omark.cxx6
-rw-r--r--io/source/stm/opipe.cxx6
-rw-r--r--io/source/stm/opump.cxx9
-rw-r--r--io/source/stm/streamhelper.cxx4
-rw-r--r--io/source/stm/streamhelper.hxx4
6 files changed, 8 insertions, 22 deletions
diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx
index f942c5d89ccd..e174bd1ec4ab 100644
--- a/io/source/stm/odata.cxx
+++ b/io/source/stm/odata.cxx
@@ -22,7 +22,6 @@
#include <vector>
#include <cppuhelper/weak.hxx>
-#include <cppuhelper/factory.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <osl/endian.h>
diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx
index 1be2c58f053a..cf2dcb99f02d 100644
--- a/io/source/stm/omark.cxx
+++ b/io/source/stm/omark.cxx
@@ -20,8 +20,8 @@
#include <map>
#include <memory>
-#include <vector>
+#include <com/sun/star/io/BufferSizeExceededException.hpp>
#include <com/sun/star/io/NotConnectedException.hpp>
#include <com/sun/star/io/XMarkableStream.hpp>
#include <com/sun/star/io/XOutputStream.hpp>
@@ -32,17 +32,13 @@
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <cppuhelper/factory.hxx>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <osl/mutex.hxx>
-#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
-#include <string.h>
-
using namespace ::std;
using namespace ::cppu;
diff --git a/io/source/stm/opipe.cxx b/io/source/stm/opipe.cxx
index 1065629f91f9..238c73292274 100644
--- a/io/source/stm/opipe.cxx
+++ b/io/source/stm/opipe.cxx
@@ -19,15 +19,13 @@
#include <sal/config.h>
+#include <com/sun/star/io/BufferSizeExceededException.hpp>
#include <com/sun/star/io/NotConnectedException.hpp>
#include <com/sun/star/io/XPipe.hpp>
-#include <com/sun/star/io/XInputStream.hpp>
-#include <com/sun/star/io/XOutputStream.hpp>
#include <com/sun/star/io/XConnectable.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <cppuhelper/factory.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
@@ -47,6 +45,8 @@ using namespace ::com::sun::star::lang;
#include <services.hxx>
#include "streamhelper.hxx"
+namespace com::sun::star::uno { class XComponentContext; }
+
// Implementation and service names
#define IMPLEMENTATION_NAME "com.sun.star.comp.io.stm.Pipe"
diff --git a/io/source/stm/opump.cxx b/io/source/stm/opump.cxx
index e1b4fe043d5c..90edc35d16d7 100644
--- a/io/source/stm/opump.cxx
+++ b/io/source/stm/opump.cxx
@@ -18,8 +18,6 @@
*/
-#include <stdio.h>
-
#include <sal/log.hxx>
#include <com/sun/star/io/IOException.hpp>
@@ -28,15 +26,9 @@
#include <com/sun/star/io/XActiveDataSink.hpp>
#include <com/sun/star/io/XActiveDataControl.hpp>
#include <com/sun/star/io/XConnectable.hpp>
-#include <com/sun/star/lang/XSingleServiceFactory.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/registry/XRegistryKey.hpp>
-#include <uno/dispatcher.h>
-#include <uno/mapping.hxx>
#include <cppuhelper/implbase.hxx>
-#include <cppuhelper/factory.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <osl/mutex.hxx>
@@ -48,7 +40,6 @@ using namespace std;
using namespace cppu;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
-using namespace com::sun::star::registry;
using namespace com::sun::star::io;
#include <services.hxx>
diff --git a/io/source/stm/streamhelper.cxx b/io/source/stm/streamhelper.cxx
index 00ef1b50ec9f..20280b850563 100644
--- a/io/source/stm/streamhelper.cxx
+++ b/io/source/stm/streamhelper.cxx
@@ -17,14 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <rtl/alloc.h>
-
#include <limits>
#include <string.h>
#include <com/sun/star/uno/Sequence.hxx>
-#include <com/sun/star/uno/Exception.hpp>
+#include <com/sun/star/io/BufferSizeExceededException.hpp>
using namespace ::com::sun::star::uno;
diff --git a/io/source/stm/streamhelper.hxx b/io/source/stm/streamhelper.hxx
index 94d7c60a75bc..c1bb1b7db748 100644
--- a/io/source/stm/streamhelper.hxx
+++ b/io/source/stm/streamhelper.hxx
@@ -20,10 +20,12 @@
#ifndef INCLUDED_IO_SOURCE_STM_STREAMHELPER_HXX
#define INCLUDED_IO_SOURCE_STM_STREAMHELPER_HXX
-#include <com/sun/star/io/BufferSizeExceededException.hpp>
+#include <com/sun/star/uno/Sequence.hxx>
#include <assert.h>
+using namespace com::sun::star::uno;
+
namespace io_stm
{