diff options
-rw-r--r-- | javaunohelper/IwyuFilter_javaunohelper.yaml | 16 | ||||
-rw-r--r-- | javaunohelper/source/bootstrap.cxx | 4 | ||||
-rw-r--r-- | javaunohelper/source/javaunohelper.cxx | 4 |
3 files changed, 17 insertions, 7 deletions
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" |