summaryrefslogtreecommitdiff
path: root/comphelper/qa
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-04-13 21:42:04 +0200
committerCaolán McNamara <caolanm@redhat.com>2019-04-19 11:31:19 +0200
commit368f20001c0d152f48575335757e3c3c3b7e5750 (patch)
tree4b31d53a04f5033704962ca513197b2e9274697a /comphelper/qa
parentc618b8eae79b8d87ad5002466ef59c5694d4cea0 (diff)
tdf#42949 Fix IWYU warnings in comphelper
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Also re-evaluate some blacklisted headers and recheck include/comphelper/ Change-Id: Ib7eea5951e849c07cea2e2782be4e8945f71ad96 Reviewed-on: https://gerrit.libreoffice.org/70899 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'comphelper/qa')
-rw-r--r--comphelper/qa/container/comphelper_ifcontainer.cxx3
-rw-r--r--comphelper/qa/container/testifcontainer.cxx1
-rw-r--r--comphelper/qa/unit/base64_test.cxx11
-rw-r--r--comphelper/qa/unit/syntaxhighlighttest.cxx1
-rw-r--r--comphelper/qa/unit/test_hash.cxx1
5 files changed, 1 insertions, 16 deletions
diff --git a/comphelper/qa/container/comphelper_ifcontainer.cxx b/comphelper/qa/container/comphelper_ifcontainer.cxx
index 26a2bd9992d8..8bd9bf75f660 100644
--- a/comphelper/qa/container/comphelper_ifcontainer.cxx
+++ b/comphelper/qa/container/comphelper_ifcontainer.cxx
@@ -19,16 +19,13 @@
#include <sal/types.h>
-#include <string.h>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/plugin/TestPlugIn.h>
#include <com/sun/star/lang/XEventListener.hpp>
#include <comphelper/interfacecontainer2.hxx>
-#include <cppuhelper/queryinterface.hxx>
#include <cppuhelper/implbase.hxx>
-#include <cppuhelper/propshlp.hxx>
using namespace com::sun::star;
using namespace com::sun::star::uno;
diff --git a/comphelper/qa/container/testifcontainer.cxx b/comphelper/qa/container/testifcontainer.cxx
index c9cb4d9509d9..d096b8fd874a 100644
--- a/comphelper/qa/container/testifcontainer.cxx
+++ b/comphelper/qa/container/testifcontainer.cxx
@@ -20,7 +20,6 @@
#include <cppunit/TestAssert.h>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
-#include <cppunit/plugin/TestPlugIn.h>
#include <osl/mutex.hxx>
#include <comphelper/interfacecontainer2.hxx>
#include <cppuhelper/implbase.hxx>
diff --git a/comphelper/qa/unit/base64_test.cxx b/comphelper/qa/unit/base64_test.cxx
index 84f59dacbeff..60f6c68d5631 100644
--- a/comphelper/qa/unit/base64_test.cxx
+++ b/comphelper/qa/unit/base64_test.cxx
@@ -17,27 +17,18 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <limits>
-
#include <sal/types.h>
#include <cppunit/TestAssert.h>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
-#include <cppunit/plugin/TestPlugIn.h>
#include <rtl/ustrbuf.hxx>
-#include <com/sun/star/util/DateTime.hpp>
-#include <com/sun/star/util/Date.hpp>
-#include <com/sun/star/util/Duration.hpp>
-#include <com/sun/star/util/MeasureUnit.hpp>
+#include <com/sun/star/uno/Sequence.hxx>
-#include <comphelper/sequence.hxx>
#include <comphelper/base64.hxx>
-#include <sal/log.hxx>
using namespace css;
-using namespace css::util;
namespace {
diff --git a/comphelper/qa/unit/syntaxhighlighttest.cxx b/comphelper/qa/unit/syntaxhighlighttest.cxx
index c502262669a0..8a5b66ed2d08 100644
--- a/comphelper/qa/unit/syntaxhighlighttest.cxx
+++ b/comphelper/qa/unit/syntaxhighlighttest.cxx
@@ -14,7 +14,6 @@
#include <cppunit/plugin/TestPlugIn.h>
#include <rtl/ustring.hxx>
-#include <cassert>
#include <vector>
class SyntaxHighlightTest : public CppUnit::TestFixture
diff --git a/comphelper/qa/unit/test_hash.cxx b/comphelper/qa/unit/test_hash.cxx
index 29ef2b884f28..650cd6fc6976 100644
--- a/comphelper/qa/unit/test_hash.cxx
+++ b/comphelper/qa/unit/test_hash.cxx
@@ -11,7 +11,6 @@
#include <comphelper/docpasswordhelper.hxx>
#include <rtl/ustring.hxx>
-#include <sal/log.hxx>
#include <iomanip>
#include <cppunit/TestFixture.h>