mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-11 22:41:02 +00:00
Use NS_STATIC_CAST instead of static_cast.
This commit is contained in:
parent
759d1a2b61
commit
3639776526
@ -767,7 +767,7 @@ NS_IMETHODIMP nsWidget::DispatchEvent(nsGUIEvent *event,
|
||||
|
||||
if (nsnull != mMenuListener) {
|
||||
if (NS_MENU_EVENT == event->eventStructType)
|
||||
aStatus = mMenuListener->MenuSelected(static_cast<nsMenuEvent&>(*event));
|
||||
aStatus = mMenuListener->MenuSelected(NS_STATIC_CAST(nsMenuEvent&, *event));
|
||||
}
|
||||
|
||||
aStatus = nsEventStatus_eIgnore;
|
||||
|
Loading…
x
Reference in New Issue
Block a user