mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
fix warning from bug 374883, r=marria
This commit is contained in:
parent
54f78ce486
commit
6ab774da75
@ -188,7 +188,7 @@ nsUICommandCollector::HandleEvent(nsIDOMEvent* event)
|
||||
nsresult rv = event->GetType(type);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
for (int i = 0; i < NS_ARRAY_LENGTH(kEvents); ++i) {
|
||||
for (PRUint32 i = 0; i < NS_ARRAY_LENGTH(kEvents); ++i) {
|
||||
if (NS_ConvertASCIItoUTF16(kEvents[i].event).Equals(type)) {
|
||||
return (this->*(kEvents[i].handler))(event);
|
||||
}
|
||||
@ -423,7 +423,7 @@ nsUICommandCollector::GetEventWindow(nsIDOMEvent *event,
|
||||
void
|
||||
nsUICommandCollector::AddEventListeners(nsIDOMEventTarget *window)
|
||||
{
|
||||
for (int i = 0; i < NS_ARRAY_LENGTH(kEvents); ++i) {
|
||||
for (PRUint32 i = 0; i < NS_ARRAY_LENGTH(kEvents); ++i) {
|
||||
// Attach a capturing event listener to the window.
|
||||
// Use capturing instead of bubbling so that we still record
|
||||
// the event even if propagation is canceled for some reason.
|
||||
@ -442,7 +442,7 @@ nsUICommandCollector::AddEventListeners(nsIDOMEventTarget *window)
|
||||
void
|
||||
nsUICommandCollector::RemoveEventListeners(nsIDOMEventTarget *window)
|
||||
{
|
||||
for (int i = 0; i < NS_ARRAY_LENGTH(kEvents); ++i) {
|
||||
for (PRUint32 i = 0; i < NS_ARRAY_LENGTH(kEvents); ++i) {
|
||||
// Using NS_LITERAL_STRING in const data is not allowed, so convert here.
|
||||
// This is not performance-sensitive.
|
||||
nsresult rv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user