Bug=81484
author=ashuk Patch provided by Harshal (keeda@hotpop.com) This patch introduces explicit (jchar*) static casts in calls to JNIEnv_::NewString in the JavaDOM code. This is needed for compliance with the strict type-checking og gcc 2.96+. Modified files are: M jni/org_mozilla_dom_AttrImpl.cpp M jni/org_mozilla_dom_CharacterDataImpl.cpp M jni/org_mozilla_dom_DocumentTypeImpl.cpp M jni/org_mozilla_dom_ElementImpl.cpp M jni/org_mozilla_dom_EntityImpl.cpp M jni/org_mozilla_dom_NodeImpl.cpp M jni/org_mozilla_dom_NotationImpl.cpp M jni/org_mozilla_dom_ProcessingInstructionImpl.cpp M jni/org_mozilla_dom_events_EventImpl.cpp M src/nsJavaDOMImpl.cpp git-svn-id: svn://10.0.0.236/trunk@95726 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -343,7 +343,7 @@ NS_IMETHODIMP nsJavaDOMImpl::OnStatusChange(nsIWebProgress *aWebProgress,
|
||||
if (!jURL) return NS_ERROR_FAILURE;
|
||||
// PENDING(edburns): this leaks
|
||||
|
||||
jstring jMessage = env->NewString(cMsg, nsCRT::strlen(cMsg));
|
||||
jstring jMessage = env->NewString((jchar*) cMsg, nsCRT::strlen(cMsg));
|
||||
if (!jMessage) return NS_ERROR_FAILURE;
|
||||
|
||||
env->CallStaticVoidMethod(domAccessorClass,
|
||||
@@ -375,7 +375,7 @@ NS_IMETHODIMP nsJavaDOMImpl::doStartDocumentLoad(const PRUnichar *documentName)
|
||||
if (!documentName) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
jstring jURL = env->NewString(documentName, nsCRT::strlen(documentName));
|
||||
jstring jURL = env->NewString((jchar*) documentName, nsCRT::strlen(documentName));
|
||||
if (!jURL) return NS_ERROR_FAILURE;
|
||||
|
||||
env->CallStaticVoidMethod(domAccessorClass,
|
||||
|
||||
Reference in New Issue
Block a user