[Libreoffice-commits] core.git: javaunohelper/IwyuFilter_javaunohelper.yaml javaunohelper/source

Gabor Kelemen (via logerrit) logerrit at kemper.freedesktop.org
Thu May 16 07:40:41 UTC 2019


 javaunohelper/IwyuFilter_javaunohelper.yaml |   16 ++++++++++++++++
 javaunohelper/source/bootstrap.cxx          |    4 +---
 javaunohelper/source/javaunohelper.cxx      |    4 ----
 3 files changed, 17 insertions(+), 7 deletions(-)

New commits:
commit 2d22f8bb15c12752f6c763cde330d255d8be9545
Author:     Gabor Kelemen <kelemen.gabor2 at nisz.hu>
AuthorDate: Mon May 6 00:33:23 2019 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu May 16 09:40:07 2019 +0200

    tdf#42949 Fix IWYU warnings in javaunohelper/
    
    Found with bin/find-unneeded-includes
    Only removal proposals are dealt with here.
    
    Change-Id: I16c46b6640a349b886fe934f5634f2ba79d64887
    Reviewed-on: https://gerrit.libreoffice.org/71934
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/javaunohelper/IwyuFilter_javaunohelper.yaml b/javaunohelper/IwyuFilter_javaunohelper.yaml
new file mode 100644
index 000000000000..59a93f4a7801
--- /dev/null
+++ b/javaunohelper/IwyuFilter_javaunohelper.yaml
@@ -0,0 +1,16 @@
+---
+assumeFilename: javaunohelper/source/vm.cxx
+blacklist:
+    javaunohelper/source/bootstrap.cxx:
+    # Needed for direct member access
+    - com/sun/star/uno/XComponentContext.hpp
+    - jvmaccess/unovirtualmachine.hxx
+    # Needed to avoid loplugin:unreffun error
+    - juhx-export-functions.hxx
+    javaunohelper/source/javaunohelper.cxx:
+    # Needed for direct member access
+    - com/sun/star/lang/XMultiServiceFactory.hpp
+    - com/sun/star/registry/XRegistryKey.hpp
+    - jvmaccess/unovirtualmachine.hxx
+    # Needed to avoid loplugin:unreffun error
+    - juhx-export-functions.hxx
diff --git a/javaunohelper/source/bootstrap.cxx b/javaunohelper/source/bootstrap.cxx
index 8d593ce54112..e7bf63b841de 100644
--- a/javaunohelper/source/bootstrap.cxx
+++ b/javaunohelper/source/bootstrap.cxx
@@ -22,7 +22,6 @@
 
 #include <osl/diagnose.h>
 
-#include <rtl/alloc.h>
 #include <rtl/bootstrap.hxx>
 #include <rtl/string.hxx>
 
@@ -33,10 +32,9 @@
 #include <cppuhelper/bootstrap.hxx>
 
 #include <com/sun/star/lang/XComponent.hpp>
-#include <com/sun/star/lang/XSingleComponentFactory.hpp>
+#include <com/sun/star/uno/XComponentContext.hpp>
 
 #include <jni.h>
-#include <jvmaccess/virtualmachine.hxx>
 #include <jvmaccess/unovirtualmachine.hxx>
 #include <tools/diagnose_ex.h>
 
diff --git a/javaunohelper/source/javaunohelper.cxx b/javaunohelper/source/javaunohelper.cxx
index 43c385bed20a..6d4b9907fd30 100644
--- a/javaunohelper/source/javaunohelper.cxx
+++ b/javaunohelper/source/javaunohelper.cxx
@@ -20,7 +20,6 @@
 #include <sal/config.h>
 
 #include <osl/module.hxx>
-#include <osl/thread.h>
 
 #include <uno/environment.hxx>
 #include <uno/lbnames.h>
@@ -28,13 +27,10 @@
 
 #include <cppuhelper/factory.hxx>
 
-#include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/lang/XServiceInfo.hpp>
 #include <com/sun/star/registry/XRegistryKey.hpp>
 
 #include <jni.h>
-#include <jvmaccess/virtualmachine.hxx>
 #include <jvmaccess/unovirtualmachine.hxx>
 
 #include "juhx-export-functions.hxx"


More information about the Libreoffice-commits mailing list