mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
afaa892cdb
commit
d155c8b972
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user