Remove IsUnicode() check on nsString. nsString is always unicode (these days), so replacing this if/then/else with the then part. r=dbaron, rs=scc

This commit is contained in:
jaggernaut%netscape.com 2001-10-14 04:37:37 +00:00
parent afaa892cdb
commit d155c8b972

View File

@ -220,12 +220,7 @@ jobject JavaDOMEventsGlobals::CreateEventSubtype(JNIEnv *env,
return NULL;
}
char* buffer = nsnull;
if (eventType.IsUnicode()) {
buffer = eventType.ToNewUTF8String();
} else {
buffer = eventType.ToNewCString();
}
char* buffer = eventType.ToNewUTF8String();
if (isEventOfType(mouseEventTypes, buffer) == JNI_TRUE) {
clazz = mouseEventClass;