diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx index fcd14fc22b80..fc4a2efb0ba4 100644 --- a/connectivity/source/drivers/hsqldb/HDriver.cxx +++ b/connectivity/source/drivers/hsqldb/HDriver.cxx @@ -32,7 +32,7 @@ #include #include "TConnection.hxx" #include "hsqldb/HStorageMap.hxx" -#include +#include #include #include #include diff --git a/connectivity/source/drivers/jdbc/JDriver.cxx b/connectivity/source/drivers/jdbc/JDriver.cxx index 611367c9d9eb..ee6175379375 100644 --- a/connectivity/source/drivers/jdbc/JDriver.cxx +++ b/connectivity/source/drivers/jdbc/JDriver.cxx @@ -25,7 +25,7 @@ #include "java/util/Property.hxx" #include "java/tools.hxx" #include -#include +#include #include "resource/jdbc_log.hrc" #include "resource/common_res.hrc" #include "resource/sharedresources.hxx" diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index 3f178acc6962..d950c47195a1 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -47,7 +47,7 @@ #include #include #if HAVE_FEATURE_JAVA -#include +#include #endif // define ---------------------------------------------------------------- diff --git a/desktop/source/migration/services/jvmfwk.cxx b/desktop/source/migration/services/jvmfwk.cxx index d18c8e1825a1..1529b3d5e9fa 100644 --- a/desktop/source/migration/services/jvmfwk.cxx +++ b/desktop/source/migration/services/jvmfwk.cxx @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include "jvmfwk.hxx" #include #include diff --git a/include/jvmfwk/framework.h b/include/jvmfwk/framework.hxx similarity index 99% rename from include/jvmfwk/framework.h rename to include/jvmfwk/framework.hxx index dea5ec0d3a7e..a85e38b2e796 100644 --- a/include/jvmfwk/framework.h +++ b/include/jvmfwk/framework.hxx @@ -19,17 +19,15 @@ /** @HTML */ -#ifndef INCLUDED_JVMFWK_FRAMEWORK_H -#define INCLUDED_JVMFWK_FRAMEWORK_H +#ifndef INCLUDED_JVMFWK_FRAMEWORK_HXX +#define INCLUDED_JVMFWK_FRAMEWORK_HXX -#include +#include #include #include #include "jni.h" -#ifdef __cplusplus extern "C" { -#endif /** @file

This library can operate in two modes, application mode and direct mode.

@@ -770,11 +768,7 @@ JVMFWK_DLLPUBLIC void SAL_CALL jfw_lock(); */ JVMFWK_DLLPUBLIC void SAL_CALL jfw_unlock(); - -#ifdef __cplusplus } -#endif - #endif diff --git a/include/jvmfwk/jvmfwkdllapi.h b/include/jvmfwk/jvmfwkdllapi.hxx similarity index 87% rename from include/jvmfwk/jvmfwkdllapi.h rename to include/jvmfwk/jvmfwkdllapi.hxx index a4919bf7a7e7..67be38afb6f8 100644 --- a/include/jvmfwk/jvmfwkdllapi.h +++ b/include/jvmfwk/jvmfwkdllapi.hxx @@ -7,8 +7,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_JVMFWK_JVMFWKDLLAPI_H -#define INCLUDED_JVMFWK_JVMFWKDLLAPI_H +#ifndef INCLUDED_JVMFWK_JVMFWKDLLAPI_HXX +#define INCLUDED_JVMFWK_JVMFWKDLLAPI_HXX #include diff --git a/jvmfwk/inc/vendorplugin.hxx b/jvmfwk/inc/vendorplugin.hxx index 5ebd4c4e209c..a108cb3c5b4a 100644 --- a/jvmfwk/inc/vendorplugin.hxx +++ b/jvmfwk/inc/vendorplugin.hxx @@ -21,7 +21,7 @@ #ifndef INCLUDED_JVMFWK_INC_VENDORPLUGIN_HXX #define INCLUDED_JVMFWK_INC_VENDORPLUGIN_HXX -#include +#include #include #include #include "jni.h" @@ -74,7 +74,7 @@ typedef enum

The function allocates memory for an array and all the JavaInfo objects returned in parJavaInfo. The caller must free each JavaInfo object by calling - jfw_freeJavaInfo (#include "jvmfwk/framework.h"). The array is to be + jfw_freeJavaInfo (#include "jvmfwk/framework.hxx"). The array is to be freed by rtl_freeMemory. In case an error occurred parJavaInfo need not be freed.

@@ -218,7 +218,7 @@ javaPluginError jfw_plugin_getJavaInfoFromJavaHome(

The function allocates memory for all the JavaInfo objects returned in vecJavaInfosFromPath. The caller must free each JavaInfo object by calling - jfw_freeJavaInfo (#include "jvmfwk/framework.h"). + jfw_freeJavaInfo (#include "jvmfwk/framework.hxx").

@param vecVendorInfos [in] vector specifying the vendor and version requirements that the JRE must fulfill. diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx index 449c26b6f3fa..748b7d7d45d4 100644 --- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx +++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx @@ -26,7 +26,7 @@ #include "osl/thread.h" #include "rtl/ustring.hxx" #include "rtl/byteseq.hxx" -#include "jvmfwk/framework.h" +#include "jvmfwk/framework.hxx" static bool hasOption(char const * szOption, int argc, char** argv); diff --git a/jvmfwk/source/elements.hxx b/jvmfwk/source/elements.hxx index 21f48baac395..18d50f374456 100644 --- a/jvmfwk/source/elements.hxx +++ b/jvmfwk/source/elements.hxx @@ -20,7 +20,7 @@ #define INCLUDED_JVMFWK_SOURCE_ELEMENTS_HXX #include -#include "jvmfwk/framework.h" +#include "jvmfwk/framework.hxx" #include "fwkutil.hxx" #include "rtl/ustring.hxx" #include "rtl/byteseq.hxx" diff --git a/jvmfwk/source/framework.cxx b/jvmfwk/source/framework.cxx index 41269431dd31..501bf7143a0c 100644 --- a/jvmfwk/source/framework.cxx +++ b/jvmfwk/source/framework.cxx @@ -22,7 +22,7 @@ #include "rtl/bootstrap.hxx" #include "osl/thread.hxx" #include "osl/file.hxx" -#include "jvmfwk/framework.h" +#include "jvmfwk/framework.hxx" #include "vendorplugin.hxx" #include #include diff --git a/jvmfwk/source/framework.hxx b/jvmfwk/source/framework.hxx index 1b4c9ed73a98..5ae25d5286c5 100644 --- a/jvmfwk/source/framework.hxx +++ b/jvmfwk/source/framework.hxx @@ -21,7 +21,7 @@ #include "rtl/ustring.hxx" #include "rtl/byteseq.hxx" -#include "jvmfwk/framework.h" +#include "jvmfwk/framework.hxx" #include "vendorplugin.hxx" /** typedefs for functions from vendorplugin.hxx diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index 918707f1ef9e..78ac585a8b7b 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -70,7 +70,7 @@ #include #include #include -#include +#include #include "jni.h" #include diff --git a/svtools/source/java/javainteractionhandler.cxx b/svtools/source/java/javainteractionhandler.cxx index abdafe4a5dd5..464f82ea6d52 100644 --- a/svtools/source/java/javainteractionhandler.cxx +++ b/svtools/source/java/javainteractionhandler.cxx @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include