From 583a0b87eb72311056f69573871deb162bd4e69c Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Mon, 19 Jun 2006 13:12:11 +0000 Subject: INTEGRATION: CWS warnings01 (1.5.24); FILE MERGED 2006/05/19 11:33:53 obr 1.5.24.1: #i55991# warning free code --- .../source/java/WindowsAccessBridgeAdapter.cxx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'accessibility/bridge') diff --git a/accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx b/accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx index 42afcad0cf85..249e390ecf4a 100644 --- a/accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx +++ b/accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx @@ -4,9 +4,9 @@ * * $RCSfile: WindowsAccessBridgeAdapter.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-09-07 15:44:58 $ + * last change: $Author: hr $ $Date: 2006-06-19 14:12:11 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -39,6 +39,10 @@ #include +#include +#include +#include + #ifndef _RTL_PROCESS_H_ #include #endif @@ -55,10 +59,6 @@ #include #endif -#include -#include -#include - #ifndef _SV_SYSDATA_HXX #include #endif @@ -117,7 +117,7 @@ jmethodID g_jmRevokeTopWindow = 0; // functions //------------------------------------------------------------------------ -JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *jvm, void *reserved) +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *, void *) { return JNI_VERSION_1_2; } @@ -127,7 +127,7 @@ Java_org_openoffice_accessibility_WindowsAccessBridgeAdapter_getProcessID(JNIEnv { // Initialize global class and method references g_jcWindowsAccessBridgeAdapter = - reinterpret_cast< jclass > (pJNIEnv->NewGlobalRef(clazz)); + static_cast< jclass > (pJNIEnv->NewGlobalRef(clazz)); if (NULL == g_jcWindowsAccessBridgeAdapter) { return 0; /* jni error occured */ } @@ -159,7 +159,7 @@ Java_org_openoffice_accessibility_WindowsAccessBridgeAdapter_getProcessID(JNIEnv } JNIEXPORT jboolean JNICALL -Java_org_openoffice_accessibility_WindowsAccessBridgeAdapter_createMapping(JNIEnv *pJNIEnv, jclass clazz, jlong pointer) +Java_org_openoffice_accessibility_WindowsAccessBridgeAdapter_createMapping(JNIEnv *, jclass, jlong pointer) { uno_Environment * pJava_environment = NULL; uno_Environment * pUno_environment = NULL; @@ -214,7 +214,7 @@ Java_org_openoffice_accessibility_WindowsAccessBridgeAdapter_createMapping(JNIEn return JNI_TRUE; } -JNIEXPORT void JNICALL JNI_OnUnload(JavaVM *jvm, void *reserved) +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM *jvm, void *) { ::Application::RemoveEventListener(g_aEventListenerLink); @@ -329,7 +329,7 @@ void handleWindowEvent(Window * pWindow, bool bShow) } } -long VCLEventListenerLinkFunc(void * pInst, void * pData) +long VCLEventListenerLinkFunc(void *, void * pData) { ::VclSimpleEvent const * pEvent = (::VclSimpleEvent const *) pData; -- cgit v1.2.3