Skip to content

Commit

Permalink
tdf#42949 Fix IWYU warnings in unotest/
Browse files Browse the repository at this point in the history
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: Ia33a10041f2411361cc849241d51b614754cda00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87310
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
  • Loading branch information
Gabor Kelemen authored and vmiklos committed Feb 3, 2020
1 parent c51a43b commit db17b61
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 22 deletions.
2 changes: 2 additions & 0 deletions unotest/IwyuFilter_unotest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
assumeFilename: unotest/source/cpp/officeconnection.cxx
1 change: 0 additions & 1 deletion unotest/source/cpp/bootstrapfixturebase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <sal/config.h>

#include <unotest/bootstrapfixturebase.hxx>
#include <rtl/bootstrap.hxx>
#include <comphelper/processfactory.hxx>
#include <basic/sbstar.hxx>

Expand Down
1 change: 0 additions & 1 deletion unotest/source/cpp/getargument.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include <osl/diagnose.h>
#include <rtl/bootstrap.hxx>
#include <rtl/ustring.h>
#include <rtl/ustring.hxx>

#include "getargument.hxx"
Expand Down
2 changes: 2 additions & 0 deletions unotest/source/cpp/getargument.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include <sal/config.h>

#include <rtl/ustring.hxx>

namespace test {

namespace detail {
Expand Down
1 change: 0 additions & 1 deletion unotest/source/cpp/gettestargument.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <sal/config.h>

#include <rtl/ustring.h>
#include <rtl/ustring.hxx>
#include <unotest/gettestargument.hxx>

Expand Down
2 changes: 0 additions & 2 deletions unotest/source/cpp/macros_test.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@

#include <vector>

#include <com/sun/star/frame/XComponentLoader.hpp>
#include <com/sun/star/document/MacroExecMode.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/frame/DispatchHelper.hpp>

#include <basic/basrdll.hxx>
#include <cppunit/TestAssert.h>
#include <rtl/ustrbuf.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/processfactory.hxx>

Expand Down
1 change: 0 additions & 1 deletion unotest/source/cpp/officeconnection.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <osl/test/uniquepipename.hxx>
#include <osl/time.h>
#include <sal/macros.h>
#include <sal/types.h>
#include <unotest/officeconnection.hxx>
#include <unotest/toabsolutefileurl.hxx>

Expand Down
1 change: 0 additions & 1 deletion unotest/source/cpp/toabsolutefileurl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <sal/config.h>

#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <osl/file.hxx>
#include <osl/process.h>
#include <rtl/ustring.hxx>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,18 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/

#include <limits>
#include <string>
#include <iostream>

#include <com/sun/star/uno/Exception.hpp>

#include <cppuhelper/bootstrap.hxx>
#include <comphelper/processfactory.hxx>

#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>

#include <cppuhelper/exc_hlp.hxx>
#include <cppunit/Message.h>
#include <osl/thread.h>
#include <rtl/string.hxx>
#include <rtl/ustring.h>
#include <rtl/ustring.hxx>
#include <sal/types.h>

#include <cppunittester/protectorfactory.hxx>
#include <cppunit/Protector.h>

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,17 @@
*/

#include <string>
#include <iostream>

#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Exception.hpp>
#include <cppuhelper/exc_hlp.hxx>
#include <cppunit/Message.h>
#include <osl/thread.h>
#include <rtl/string.hxx>
#include <rtl/ustring.h>
#include <rtl/ustring.hxx>
#include <sal/types.h>

#include <cppunittester/protectorfactory.hxx>
#include <cppunit/Protector.h>

namespace {

Expand Down

0 comments on commit db17b61

Please sign in to comment.