Closed Bug 14606 Opened 21 years ago Closed 20 years ago

logic error in nsEventListenerManager.cpp

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: colin, Assigned: joki)

Details

In layout/events/src/nsEventListenerManager.cpp is the following
code snippet:

                switch(aEvent->message) {
                  case NS_MENU_CREATE:
                    if (ls->mSubType & NS_EVENT_BITS_MENU_CREATE) {
                      correctSubType = PR_TRUE;
                    }

My compiler grumbles because the statement "correctSubType = PR_TRUE" can
never be executed (because NS_EVENT_BITS_MENU_CREATE is zero).

Something is wrong here!!

Colin.
Assignee: troy → joki
I checked this is with some fixes a little while back.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Based on Tom's comments, marking this as verified fixed in the Nov 15th build.
You need to log in before you can comment on or make changes to this bug.